User comment Facebook - facebook

I'm using Facebook's API and I need the userID of the person who comments a post. I tried field=from, but it gives me nothing.I'm using HTTPS requests only for now. Facebook's documentation says from return the user who writes the comment. Has someone tried this before ? Is it a bug ? I think it's because the person has a private profile but i'm not sure. Thanks.

Related

Automatically find public posts and comments on Facebook and unlike/remove them?

I'm using Facebook for many years, and I've liked and commented a lot of friends posts (status, photos, etc). The problem is that I didn't pay attention to that these posts were "public" or "for friends only". As a result, a person who is not a friends of mine can now see all these contents using a request of Graph Search like:
Photos liked by USERNAME
Posts liked by USERNAME
Posts commented on by USERNAME
...
Of course I could remove likes and comments one by one from the Activity log, but it would take several months... I could also use the Toolkit for Facebook available on Chrome, but unfortunately it only proposes to remove ALL likes or comments, of any kind, whereas I want to do it only for public ones.
Edit: This Chrome pluggin is actually a fake, don't use it!
Is there a way to do it with Graph API?
This post seems to mention there isn't, but I'm not sure. I found this post for instance.
Edit: #CBroe confirms "Facebook has recently removed the ability to (un-)like objects in the name of the user" so I guess the latter link is obsolete?
Admitting we've retrieved the posts or comments ID, for instance by parsing the html response of the Graph Search result, then:
Is there another way to launch a request to FB which unlikes or removes posts/comments?
What do you think about it?
Thanks!

Facebook Graph API cannot UPDATE the fields about URL link such as name, caption, description or picture after published

I'm trying to build A/B testing tool for Facebook page post.
And then I need to update the post's field about URL link like name (article's title), caption, description or picture (article's thumbnail).
So I have been making sure whether it can be possible or not by using Graph API Explorer. But it seams impossible to update the fields after published.
Of course, I checked Facebook official Graph API Reference. But the reference does not clearly explain it is impossible.
I've got permission of user_posts, publish_actions and publish_pages to make a POST Method request.
Please tell me whether it's possible or not. If possible, tell me the way.
As #CBroe stated, it's clearly pointed out in the docs what is possible concerning updating, and how.
https://developers.facebook.com/docs/graph-api/reference/v2.3/post#updating

Facebook mention tags not possible before user has commented her own post? [Bug?]

Comments with inline mention tags of users, we know that it's possible to send them through the API to post on pages using the syntax:
#[USERID:USERNAME]
However, this seems only possible when mentioning a user who have made a comment herself to that post. It is, from what I can see, not possible to post a comment with a mention tag of user who wrote the post you're actually commenting - unless that user first comments her own post.
This seems, in short, really weird. Is there a way to get around this problem?
Any and all help is greatly appreciated.

facebook like results to page 403

If i like a page on my website. It is posted to facebook. The problem is when a second user clicks the like on facebook. They are taken to a 403 forbidden page.
likes on http://www.cmypictures.com/photos/index.html
result to
http://www.cmypictures.com/photos/index.html?fb_action_ids=10151367960904866&fb_action_types=og.likes&fb_source=timeline_og&action_object_map=%7B%2210151367960904866%22%3A10150286116634264%7D&action_type_map=%7B%2210151367960904866%22%3A%22og.likes%22%7D&action_ref_map=%5B%5D
i have noted that if i manually delete %3A"og.likes"%7D&action_ref_map=%5B%5D at the end of the link, the desired page is opened.
Why is facebook adding this code at the end and what can be done to avoid this? Just to mention I run my website on joomla.
Please help
Facebook adds this for referral purposes so you can see the data in /analytics. As mentioned by #igy you need to check your CMS as it is not handling the params properly.
I had the same issue, I contacted my hosting provider and submitted a ticket, I have no idea what they did to fix this but it was sorted out pretty quickly. Something in the link may have been blacklisted or some combination of the '.' and the lenght of the link might have caused the issue. Contact your hosting provider for a solution.

Why are my results different from using FB website and FB API?

Seemingly simple question but I found no obvious answer so far.
I logon to Facebook.com using my browser. I go to the search bar, type in 'Obama'. Then Select 'Public Posts' on the left hand side bar, which starts listing all PUBLIC posts. I pick up one of the posts that shares a like/photo and has a URL like this : 'www.facebook/com/story_fbid=&id=. I figure out that abc is the user_id and xyz is the object_id. This also means that the post_id is abc_xyz.
Then I go to the graph.facebook.com API explorer, generate a user access token, then type this query:
https://graph.facebook.com/fql?q=select post_id from stream where
post_id="abc_xyz"
NOTHING.
I even try
select link_id from link where link_id in ("xyz", "abc_xyz")
still NOTHING.
So, What is happening here? Some posts on StackOverflow talk about how facebook's public posts are not truly public - BUT, there is no reference to this in the official FB documentation.
Then, I tried creating a new account, creating post on my wall, making my wall posts public, then I tried the same queries as above, and yet again NOTHING (just an empty dataset).
Guys, are there any official explanations to this behavior? When I am logged in as user, I AM NOT an APP!/ROBOT, but just an end user - I can see a public post/link/share/photo, then why on earth can the API not do the same? What can I do, to make a PUBLIC POST, MORE PUBLIC?
I believe the answer to this question answers my question: Trying To Read Friends Links in Facebook Using FQL: Why do some friends return an empty set?
Facebook's users are allowed to set separate permissions for apps, so even when I am using the graph api explorer (which is an app) or the api directly (which is equivalent to an app), any public links/photos are only available to these apps when the original author of these links/photos/status has NOT unchecked it from "How people bring your info to the apps they use" setting under privacy settings.
I experimented with a test fb account, shared a link (with the default privacy settings), and I was able to query it using FQL on the link table, and then, I turned off 'My Links' under privacy settings and this time the same query in api explorer returned empty set.
So, the answer to my question "What can I do, to make a PUBLIC POST, more PUBLIC" would be that I can't do nothing about it - it is a setting that the user who posted this public post controls. When it is at default, I'll have access to it, when its not, I won't.
Hope, this helps others looking for similar answers.