简体   繁体   中英

How to make the facebook comments on my website and on page's wall post binded?

everybody.

I am developing the facebook tab application. The functionality is pretty simple and is close to the blog.

  1. Page Admin writes articles in the app, and the link to each article is posted on the page's wall via Graph API.

  2. The wall post from step 1 contains a link to the application tab of the page with post_id passed via app_data parameter.

  3. The article itself contains the facebook like and comments plugins on it. To attach this plugins I use the url of the external website on which pages are prepared for Facebook scraping (Open Graph tags and stuff).

And finally the question!

Is it possible to somehow manage the situation whenever user posts the comment inside an application tab, his comment automatically appears near the wall post performed in step 1?

I really hope that the question is clear. Any help, please?

You can publish comments to a Post via the Graph API:

https://developers.facebook.com/docs/reference/api/post/#comments

You will need to ensure that you have:

  • Requested publish_stream permission from the user
  • Indicate to the user very clearly that you are going to publish a comment when they do this (to do otherwise would not only break Platform Policy, but would be a crappy experience for users)
  • Subscribe to the Javascript comment.create event which is fired when someone posts a comment in a comments plugin: https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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