简体   繁体   English

Facebook php API:分享Facebook应用消息

[英]Facebook php api: share facebook app message

I have create a facebook app that interact with an android app, and i have a server where user could register himself (for using app) with his facebook account. 我已经创建了一个与Android应用程序交互的Facebook应用程序,并且我有一个服务器,用户可以在其中注册自己的Facebook帐户(使用应用程序)。 I want that when user register himself for firs time to my server, a link (with app logo and link to app page) will automatically shared on his facebook wall. 我希望当用户将自己的第一时间注册到我的服务器时,一个链接(带有应用程序徽标和指向应用程序页面的链接)将自动在他的Facebook墙上共享。 How can i do? 我能怎么做?

The best way to do this without spamming: 避免垃圾邮件的最佳方法是:

https://developers.facebook.com/docs/reference/dialogs/feed/ https://developers.facebook.com/docs/reference/dialogs/feed/

Although i would not just open the dialog immediately after user registration, i would include a button where the user can click to share. 尽管我不会在用户注册后立即打开对话框,但我会包含一个按钮,用户可以单击该按钮进行共享。

As i commented already: NEVER post anything automatically on the wall of the user, always let the user decide. 正如我已经评论过的:切勿在用户墙上自动发布任何内容,始终让用户自行决定。

That would be for a Website, or a "Web App". 那将用于网站或“ Web应用程序”。 If you are talking about a native App, then this may help you: https://developers.facebook.com/docs/android/share 如果您正在谈论本机应用程序,那么这可能会对您有所帮助: https : //developers.facebook.com/docs/android/share

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM