向应用程式使用者自动发布讯息(feed) [英] Auto post stream (feed) to app users

查看:55
本文介绍了向应用程式使用者自动发布讯息(feed)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的应用程序用户上发布流( $ facebook-> api('/ me / feed','post',$ attachment); )任何时候。我想我可以通过 $ facebook-> getAccessToken(); 获得访问令牌,但是如何发布到墙上?

How can i post stream ($facebook->api('/me/feed', 'post', $attachment);) to my app users on anytime. I think i can get access token via $facebook->getAccessToken(); but after, how can i post to wall?

推荐答案

授予 publish_stream 权限,然后使用用户ID而不是

Grant the publish_stream permission and use the user id after that instead of me:

$facebook->api("/$user_id/feed", 'post', $attachment);

有关详细信息,请查看此上一次编辑(编辑4 回答(也可以按照我链接到的其他答案的讨论) 。

For more information, check the last edit (EDIT 4) on this answer (also follow the discussion on the other answer that I linked to there).

这篇关于向应用程式使用者自动发布讯息(feed)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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