solved OneAll Module Issue

sbhadauria
@sbhadauria
10 years ago
129 posts
When we are sharing a post on facebook from oneAll module, we are getting below mentioned error:

"The provider did not accept the message: you do not have the permission to post on behalf of the user"
updated by @sbhadauria: 09/06/14 02:50:19PM
michael
@michael
10 years ago
7,746 posts
sbhadauria:
When we are sharing a post on facebook from oneAll module, we are getting below mentioned error:

"The provider did not accept the message: you do not have the permission to post on behalf of the user"

Please post steps to recreate the error as well as any other information that might help locate the source of the issue.

That message is not being provided by jamroom. Its probably coming from oneall.
updated by @michael: 07/23/14 09:05:11PM
sbhadauria
@sbhadauria
10 years ago
129 posts
when we are creating a media we have selected checkboxes to post this media on facebook. But we are getting below mentioned error from facebook.

"The provider did not accept the message: you do not have the permission to post on behalf of the user"

Do you need anything else?
sbhadauria
@sbhadauria
10 years ago
129 posts
We have downloaded the OneAll SDK and try the following code but getting same error:

//Publish message for this user_token
$user_token = '---------';

//Publish message to this networks
$providers = array (
'facebook'
);

//Message Structure
$message_structure = array (
'request' => array (
'sharing_message' => array (
'parts' => array (
'text' => array (
'body' => 'http://www.oneall.com oneall simplifies the integration of social networks for Web 2.0 and SaaS companies http://www.oneall.com'
),
'picture' => array (
'url' => 'http://oneallcdn.com/img/heading/slides/provider_grid.png'
),
'link' => array (
'url' => 'http://www.oneall.com/',
'name' => 'oneall.com',
'caption' => 'Social Media Integration',
'description' => 'Easily integrate social services like Facebook, Twitter, LinkedIn and Foursquare with your already-existing website.'
),
'flags' => array (
'enable_tracking' => 1
)
),
'publish_for_user' => array (
'user_token' => $user_token,
'providers' => $providers
)
)
)
);

//Encode structure
$message_structure_json = json_encode ($message_structure);

//Make Request
if ($oneall_curly-> post (SITE_DOMAIN . "/sharing/messages.json", $message_structure_json))
{
$result = $oneall_curly-> get_result ();
print_r (json_decode ($result-> body));
}
//Error
else
{
$result = $oneall_curly-> get_result ();
echo "Error: " . $result-> http_info . "\n";
}
brian
@brian
10 years ago
10,148 posts
sbhadauria:
when we are creating a media we have selected checkboxes to post this media on facebook. But we are getting below mentioned error from facebook.

"The provider did not accept the message: you do not have the permission to post on behalf of the user"

Do you need anything else?

This means the user has not given the required "post to wall" permissions. Without those permissions you will always get that error - there is no way to "get around it" from Jamroom.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
10 years ago
7,746 posts
sbhadauria:
when we are creating a media we have selected checkboxes to post this media on facebook. But we are getting below mentioned error from facebook.

"The provider did not accept the message: you do not have the permission to post on behalf of the user"

Do you need anything else?

For Future reference: I'm not able to see your system. You need to explain how I can setup My system to be able to see what your seeing and trying to fix.

Once I can see it on my system then I might be able to offer suggestions that might help.

Tags