在多个朋友的墙上发帖 [英] Posting Messages in Walls of Multiple Friends

查看:130
本文介绍了在多个朋友的墙上发帖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,其中我想在Facebook上的多个用户的墙上发布消息,如你轮到玩特定的游戏。

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".

推荐答案

这样做的唯一方法是使用服务器端脚本在朋友上发布feed

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

您可以使用Graph API来POST通过向 / PROFILE_ID / feed 范围发布POST请求(而PROFILE_ID是朋友的Facebook ID或用户名),
更多信息:
http://developers.facebook.com/docs/reference/api/user /#posts (在创建细分下)

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)

为了在多个朋友的Feed上发布 - 您需要在循环中执行此操作(非常不推荐 - facebook自动评级不喜欢它,因为它似乎是垃圾邮件,您的应用程序可能会被阻止)

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)

另一种方式(而不是代码中的循环)正在使用此处中描述的批次请求概念,以创建多个图形API调用一次

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

为了发布用户的姓名,他将不得不向您发送 publish_stream 权限(甚至更好 - publish_actions )。有关扩展权限的更多详细信息可以在这里找到 - http://developers.facebook.com/docs/认证/权限/

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/

编辑:
自2013年2月以来,不可能通过图形API在其他用户的墙壁上发布。所以你可以看到这个答案不再相关了

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

这篇关于在多个朋友的墙上发帖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆