Posting Messages in Walls of Multiple Friends

房东的猫 提交于 2019-12-23 05:41:37

问题


I am developing an application in which i want to post messages on Wall of multiple users on facebook like "Its your turn To play a particular game".


回答1:


the only way of doing it is using server side script for publishing on friends feed

you can use the Graph API to POST to the friend's feed by issuing a POST request to the /PROFILE_ID/feed scope (while PROFILE_ID is the friend's facebook id - or username) furher information on: http://developers.facebook.com/docs/reference/api/user/#posts (under create segment)

in order to publish on multiple friends feeds - you need to do this in a loop (highly not recommended - facebook automated rating doesn't like it because it seems like spam, and your application might get blocked)

another way (instead of loop in your code) is using the batch request concept as described in here for creating multiple graph api calls at once

in order to publish post on befhalf of the user he will have to grant you with publish_stream permission (or even better - publish_actions). further details about extended permissions can be found here - http://developers.facebook.com/docs/authentication/permissions/

EDIT: Since February 2013 it is no longer possible to post on other users wall through the graph API. So you can see this answer as not relevant anymore




回答2:


No you can't do multiple post via IOS FB SDK. Even though the docs say that you can use "To" parameter of the api, its not allowing to post on multiple walls with single call.

Instead you need to do it in multiple calls. Or you can send a Notification via Game requests to multiple users. But posting on walls seems to be not possible at the moment.



来源:https://stackoverflow.com/questions/12006342/posting-messages-in-walls-of-multiple-friends

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