moraskiod / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

Can we send a message to Facebook friend? #278

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Can we send a message to Facebook friend using SocialAuth? If not, does 
Facebook provide a way to do so ?

Original issue reported on code.google.com by manish.k...@ihg.com on 15 Jul 2013 at 10:20

GoogleCodeExporter commented 8 years ago
Please gave a look into the following issue 
http://code.google.com/p/socialauth/issues/detail?id=257

You have to make following entry in oauth_consumer.properties file.
graph.facebook.com.custom_permissions = 
publish_stream,publish_actions,user_birthday,user_location,user_photos

The difference is offline_access permission. No need to pass this scope now.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 17 Jul 2013 at 9:49

GoogleCodeExporter commented 8 years ago
Thanks a lot for your reply, Tarun !!!

Looks like Facebook has disabled the feature to post to friends wall/inbox.

See - https://developers.facebook.com/roadmap/completed-changes/  (search for 
Removing ability to post to friends walls via Graph API )

When I try to feed to my friend in Facebook, I am getting 403.  I am not sure 
if I am doing anything wrong as same feed works fine if I try to post on my 
wall.

Response serviceResponse = provider.api("https://graph.facebook.com/{friend 
Id}/feed", MethodType.POST.toString(), null, null, 
"message=something&access_token=" + accessKey);

Original comment by manish.k...@ihg.com on 17 Jul 2013 at 6:49

GoogleCodeExporter commented 8 years ago
Yes Manish, you are right. Facebook has removed this functionality via Graph 
API.

So its not available now. Thanks Manish for this information.

Original comment by tarun.na...@3pillarglobal.com on 23 Jul 2013 at 11:50