I created a website than can post from my website to facebook using embeded post
https://developers.facebook.com/docs/plugins/embedded-posts
My problem is I need to get all the comment of that certain post.
I've read about the comment plugin
https://developers.facebook.com/docs/plugins/comments
but i don't think that it can solve my problem since it will only give me a comment box for my website, not the comments from their post.
how do I get all the comment of that embeded post? can someone give me a link that might help? thanks.
You have to use the proper Facebook Graph API supplied for web developers to embed and manipulate Facebook content in their applications.
Read the specific documentation here.
EDIT: This is the PHP SDK here and the Reference Documentation, with classes you may use to achieve what you want here. Read it all, understand how to implement it in your project and you'll be up and running.
Related
I´d like to use the Facebook Comments plugin for my website.
As Facebook is offering this as an iFrame, the actual comments are not part of my content.
Therefore I am looking for a solution to read the comments and render them into my website.
So far with no luck.
There is an older article, which also links to code that seemed to work.
https://moz.com/blog/make-facebook-comments-box-indexable-by-search-engines
However, changes on the Facebook side seem to have made that code unusable. Has anyone found a new solution for this?
Maybe via curl or file_get_contents or even the official API?
Please note, I am referring to the comments plugin for URLs (https://developers.facebook.com/docs/plugins/comments/)
not comments from Facebook Pages or Profiles.
If we look at the facebook documentation about POST on the page feed, we notice the following message:
However, it isn't written anywhere by which to replace these parameters, which don't work anymore. Has somebody found it ?
I noticed that by replacing picture by source, we obtained the photo of the article, but for the other parameters I remain in nothingness.
I write this answer to help people who face to this problem.
First, read these article to understand the situation :
Facebook No Longer Allows Custom Link Previews
This announcement by Facebook
They done that to avoid fake news directly posted on pages. They want all the news to be linked to website. So you just have to modify the og:meta (See The Open Graph protocol) in the HTML side.
With the help of the tool "Sharing Debugger", you'll be able to test if your article correctly included the necessary parameters, which were previously entered directly in the PHP.
I'm trying to find some information/documentation on creating a custom Facebook feed for any website. (Custom css etc) but there is nearly nothing to find. I want to read posts from a public facebook page and display them on my website in an owl carousel.
The only guide I found was outdated since facebooks developers page completely changed and the other guides are all for Wordpress.
Does anyone know any good guides, or can anyone help me in the good direction?
Thanks
Example code and information can be found in the API reference:
https://developers.facebook.com/docs/graph-api/reference/page/feed#read
I suggest using an App Token on the server, it is valid forever. If you don´t know about the different Tokens, here are some links:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
Side Note: To get pictures, you can use the full_picture field: /page-id/feed?fields=full_picture
I'm looking for examples in reddit API. I want to pull images from a certain subreddit (http://www.reddit.com/r/VillagePorn) and put them on a webpage. I've seen other websites do it (mainly, imgur.com/r/*) and I can't figure out how.
I tried http://www.reddit.com/r/VillagePorn/.xml but that just returns the Thumbnail of the picture. Not even the link itself.
What should I do?
You can check out the Reddit API if you'd like. Any link can add /.json to the end of it and it fetches the information for that, including the source link for the picture.
I'm not sure how you're creating this page, but this question might help you out too.
I'm trying to make a Facebook application that utilises the multi-friend-selector to let someone answer a question. (eg: why do you think is the most awesome? you get multi friend selector below, choose someone and click post to his wall).
I've the post to wall part working fine using PHP. Right now though the friend to be asked a question is picked randomly.
Now the question. Is there a way to use PHP to render a multi-friend-selector or do i HAVE to go back and do this whole thing using Javascript?
The multi-friend-selector is under Facebook's control and you cannot use for anything other than sending invitations. So unfortunately you'd have to use your own. Fortunately though, someone else already had this problem and wrote one for you: Facebook – Friends selection custom component. Note that it does use some JavaScript.