Facebook Javascript fb.ui event to post photo on friends wall?

守給你的承諾、 提交于 2019-12-11 06:54:03

问题


I want to create a button, when clicked, should open a Facebook dialog requesting user to post a photo (I mean a photo. Not a attachment link) on their friends wall.

Is that possible?

Actually this might remove the possibility of asking permissions for publish_stream as user will have entire control over what to publish and what not..


回答1:


I'm almost sure it's not supported to post to another user's /photos connection - When you retrieve the post ID you get, are you sure it's not appearing in your own profile / your own activity log?

{edit} there is no dialog which simulates the 'upload a photo to a friend's profile' functionality of facebook.com {/edit}




回答2:


@Surya: You need the user's permission to post photos on his wall, and for that you need his permission to access his photos, which is achieved by the "publish_stream" parameter in your request. As far as your question is concerned, posting photos on your friends wall doesn't seem to possible. Even if it is possible it won't post it to your friend's wall unless he/she permits that. There is a way by which you can post the videos/photos but as a link and not as proper photos. Also I had noticed one more thing when I was trying to use photo sharing graph api, that it doesn't publish photos to your account immediately. It seeks the user's permission to be published, else the photos remain in his unpublished albums. You will find that album when you click on "Photos" section of your account. Check out my blog for more details :)

http://bashwithflash.blogspot.in/2012/05/photo-sharing-on-facebook-using-graph.html http://bashwithflash.blogspot.in/2012/05/album-sharing-on-facebook-using-graph.html



来源:https://stackoverflow.com/questions/12123099/facebook-javascript-fb-ui-event-to-post-photo-on-friends-wall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!