开发者

Allow non admin users to upload a photo a Facebook Page

I am trying to write a facebook app using Facebook C# sdk 5.1.1. The app should let the users to upload a picture to a Facebook page. I was able to write the app where only the a开发者_StackOverflowdmins of the page are able to upload the picture but not users. Even if the user has liked that page I am not able to do it.

I know its possible because on iPhone or from web site you can visit a page and write something on wall or share a photo. But I am not able to figure out how to do it using Facebook API.


the user of the application needs to grant the publish_stream permissions.

You can then make a call to

https://graph.facebook.com/<page_id>/feed?message=<yourmessage>&picture=<picture_url>&access_token=<access_token>&method=POST.

You can try this first by using the Graph API Explorer

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜