sync Facebook Post Likes and Post in Website Likes - php

I Apologise if I´m repeating a topic. I know this question is asked before but there is no clear answer about the solution. I´m looking to unify Facebook post likes and Website post url (related to that Facebook post) likes. There´s a way to do this?
Perhaps a library, code, book, tutorial, something.
Thanks!

I was trying to do the same thing https://stackoverflow.com/questions/29615717/facebook-graph-api-like-share-comment-relative-to-object-instead-of-url turns out that you can't currently refer to the facebook post this way. You can refer to the page/user or the attachments in the post but you cannot refer to the post itself.I submitted a bug report on facebook developer page

Related

How to post invitation on friend's wall after Facebook breaking change on Feb 6 2013?

Firstly, I actually spent a lot of time to search for the answer but I still cannot find a proper solution, so I decided to post a question here, hopefully some one can provide me at least ... some hints.
My problem is:
According to Facebook road map, There's a change in "Removing ability to post to friends walls via Graph API ", this affects an inviter project which I'm currently working on for my company. Now, I cannot post invitation on friend's wall, this will make our app completely useless.
I tried to figure out 2 solutions as below:
Using Facebook Graph API to post a feed on my wall and tag the friend that I want to invite on that feed. This solution works fine but it will post thousand of feeds on wall and it is not good.
Using Facebook Chat XMPP I sill cannot manage to make it work. But by using this, there's a high change that our application can be banned by Facebook because of spamming.
My question is: Besides 2 solutions above, is there any better way to post invitation on friend's wall?
If there's no other solution, can anyone tell me how to post a feed that is hidden from timeline using GraphAPI? (For timeline not be polluted by invitation feed)
Now, I cannot post invitation on friend's wall, this will make our app completely useless.
Maybe you were not supposed to “spam” walls for the purpose of inviting people in the first place … and that loophole is being closed now.
Requests/Invites are the mechanism you’re supposed to be using for stuff like this: https://developers.facebook.com/docs/requests/

Can't get Facebook comments from my post to the website

I am trying to show the comments from my facebook page post on my PHP website. I like the comments to be synced, so where the user enters comments on the facebook post of my page, it will automatically show up on my website. I know how to create the comment box, but it's doesn't pull the comments from the page.
for the comment box I have:
<div class='fb-comments' data-href='https://www.facebook.com/media/set/?set=a.182291248558753.39531.182290545225490&type=1&l=d607ba4dcc' data-num-posts='3' data-width='470'></div>
I am trying to show the comments that were left on my post, but it's not pulling it. I have looked at the graph API but can't figure out which on get the comments and how to get the so called "primary key" for the comments.
I have looked at the following fql:
Stream: but I don't know what the "post_id" is supposed to be. https://developers.facebook.com/docs/reference/fql/stream/
Comment: but I don't know what the "post_id","object_id", or "xid" would be for a post in a page of the an album. I even tried to replace the URL in the example post they had, but it seems like FB FQL can't parse that kinda url. https://developers.facebook.com/docs/reference/fql/comment/
Even when we get a list of comments, I am not sure how the fb:comments plugin can use the stream to populate my page, don't know if it's possible!
Any help would be greatly appreciated.
You could use Facebook PHP SDK for this which you can get from github. You can then use it to retrieve the comments from the post and store them in a database, updating every now and then to stay current. This will mean less requests to Facebook. When a user posts on your site using your form you can then send the post to Facebook using the SDK.
The problem with this method is that you will need to create an app and users will have to authorise the app for it to be able to post as them. So maybe it's not such a good idea, but I've typed all this in now so I'm not going to delete it.

Why do geotargeted posts not appear in API even with accesstoken?

This has been asked before but I haven't seen a definitive answer. Hopefully someone has an answer. Basically, it seems impossible to pull any post that is geo-tageted via the API becasue it has privacy settings, that is, a country set to who can see it.
I am using https://graph.facebook.com/".$pagetoprocess."/posts?&access_token=".$att and this will pull the posts but not any posts that are geotargeted to the UK for example.
If I create an accesstoken from a user who is an admin of the page then I see all posts including geotargeted posts.
Why would this be? how can I see all posts for any page whether I am an admin or not or whether it is geo-targeted?
I would have thought that if you creaded an app in the UK and therefore had an app and secret id code from which you then generated a user access token, why would you not be able to see a post from a page geo-targeting the UK? Seems strange.
Any ideas?
Thanks
Jonathan
I would think that all posts would appear, or at least that is what it says on the api. You could try using feed instead of posts, since posts is a derivative. You might also try using:
&include_hidden=TRUE
But I'm not sure that will help.
If you have the page url, I'd be willing to see if I can play around with it in the graph explorer.

Links published to my page wall with graph do not show up in user feeds

I have a php script that posts links to my facebook page wall using the php sdk that works fantastic except for one minor annoyance. When my links are posted programatically via the api they do not appear in the feeds of people who like the page. When the links are posted manually they show up. My question is: is there any special considerations I need to take into account to make those automatic posts show up or is this just how facebook's algorithm works when choosing content for the feed? I suspect this is more of policy issue than a technical one but facebook has been changing things around so I don't want to jump to conclusions. Any insight would be appreciated.
So I discovered that facebook intentionally penalizes you for auto-posting through the api. Read here: http://sproutsocial.com/insights/2011/04/facebook-penalizes-you-for-automating-your-page-updates/
Bastards. Oh well. Question answered.
Try using the latest version of the API. Maybe they've resolved a previous bug.

Posting to a Facebook (fan) page wall

I have a blog (wordpress) and a facebook fan-page for my blog (with more than 1 fan!). I would like to post a message to my FB wall, every time I post something on my blog. Preferrably PHP.
The same question is already asked here, but this question isn’t going anywhere. The question dates from march, but Facebook has updated their API since. The FB documentation gives three different methods for posting to the wall, but I cannot figure out which is the easiest/best one to use.
Does anyone have a link to a full tutorial or a short walktrough how to get this done?
(Currently, I’ve got the Ping.fm app setup, who gets its data from twitterfeed. The drawback is that the links get shortened, and Facebook cannot get the first picture and full title.)
API posting to a Facebook Fanpage (not sure if it is to wall specifically) success claimed (and explained in reasonable detail) over on this comment:
http://getsatisfaction.com/pingfm/topics/posting_updates_to_facebook_fan_pages_api_supports_it#reply_1038558
Why not use the standard "Imported Sites" feature that reads your blog's RSS feed? Get to it from Wall -> Options (below share box) -> Settings -> Blog/RSS under Imported Sites.
See http://www.tech-recipes.com/rx/2885/facebook_import_blogs_rss_feeds_without_third_party_applications/ for more information.

Categories