creating facebook comments - without using social plugin - facebook

I there any way I can create and post comments, without using comments plugin at all.
Facebook graph api allowed me to fetch all comments under a particular post, but didn't find anyway to create new ones :(
thanks

Unfortunately Facebook don't look kindly on this kind of thing, even though OG objects have a /comments connection, so either the docs are inaccurate or it's a proper bug. Would love to believe it's the latter but I suspect it's a documentation error.
In any event i've created a bug report at Posting to Comments Social Plugin doesn't work in the vain hope it will be addressed, please engage on that report so we can get some love for this issue.

It's right there in the documentation for the Post object:
Create
You can write to the POST_ID/comments connection to post a comment to
the post by issuing an HTTP POST request with the publish_stream
permission and following parameters.

Related

Checking if post is posted via application Facebook API

If I have post-id, how can I check if that post is posted via some application or not? I've tried with ["application"] but it does not work.
I have researched and could not find the answer. There is not a thread like here so I guessed I can create it.
Sorry If I have missearched, thank you.
P.s. I know how to get all the posts and how to access every single one of them, but not how to check if it's from the app or not.

FB Comments. Missed old comments. Wrong comment counter number

I have a blog on Wordpress with installed "Simple Facebook comments" plugin. It working couple of years but some time ago i found out that for some posts Facebook API showing me "N" comments but display none.
I tried to add comment to this kind of post and comments counter showing "N+1" but i was able to see only one most recent comment. I was trying to receive all of existing comment via Open Graph API (example: http://graph.facebook.com/comments?id=http://blog.spafinder.ca/breaking-free-toxic-relationship/) but it returning only one comment after that i was requested comments number for the same post (REST API: http://api.facebook.com/restserver.php?method=links.getStats&format=json&urls=http://blog.spafinder.ca/breaking-free-toxic-relationship/ , GRAPH API: http://graph.facebook.com/?ids=http://blog.spafinder.ca/breaking-free-toxic-relationship/) and it told me that i have 2 comments.
I tried to clear OpenGraph cache, request comment number with another resources and it wasn't help.
Do you have any idea why it happening? I would be a very grateful if somebody will told me the possible way to solve that problem.
Thanks.
Based on the url you posted, that plugin seems to be using the Facebook Rest Server API which has been deprecated as noted below...
We announced the Graph API at f8 2010. Since that event, we have been working hard to ensure that the most important functionality that developers were using with the REST API is available via the Graph API. For the past several months we have been slowly launching new features in the Graph API to bring it up to parity with the REST API
This article is 3 years old so I wouldn't be surprised to find out that there are bugs in the existing deprecated API since they have dropped support for it. That said, be sure to read the documentation of the plugin you're using, they might have updated the plugin.
Also, if you wish to do this job manually, rather than depending on a third-party, be sure to read the documentation regarding this endpoint because permissions and default filters can affect the output...
https://developers.facebook.com/docs/graph-api/reference/v2.0/object/comments/

Facebook status post via app doesn't show in Newsfeed

I am using facebook graph api to post a status to Facebook via my app.
The problem is I can't see the status post in NewsFeed, but in the
Wall of the user.
I just used me/feed accordingly to GraphAPI documentation.
When I searched this issue, I saw quite similar thing http://developers.facebook.com/bugs/302089206530370.
This one is quite similar one too .Facebook graph post on feed is not visible in newsfeed, but that api is deprecated a long time ago and not the same API that I am using.
This one is exactly the same like my issue. http://developers.facebook.com/bugs/353691264693202 but sadly, facebook doesn't provide info in detail. can't find the duplicate issue.
I asked for scope=user_photos,read_stream,publish_stream,offline_access,user_status,friends_status grant access for my app.
Is there anything that I missing out?
Edited: I confirmed my setting of whether I have set to hide my app post in my newsfeed too. But I didn't set it.
I think that is the facebook bug. already found the similar one reported http://developers.facebook.com/bugs/372776119424090?browse=search_4fc3354fb769c0726100997
For the time being, I can only wait for Facebook to fix that bug.
Thanks.

Sharing links posted to a wall via an app

I've created an app which enables business to post links to their Facebook wall as the business (have proper business auth tokens, etc.).
However the links posted via the app do not have a share link, only comments and like. When a link is posted through the Facebook UI to the business wall it does contain a share link along with comments and like.
What am I missing to enable the link posted via my app to have a share link?
I am currently issuing a POST request to the following URL to create the posts:
https://graph.facebook.com/[profileId]/feed?message=[message]&link=[link]&...
this is a reported bug and have not been fixed yet. have a look (http://developers.facebook.com/bugs/307556529334653)
I think you will need publish_stream permission for that and publish what they write. IMO Facebooks makes difference between feed and stream. Just my thoughts :)
that's the standard procedure when you have a user post via app. I don't think there's a way to have users post as themselves, as far as links are concerned. What you can do is have them post a status update and that one will be seen as posted by the user (no app information).
There's no other procedure I am aware of that can do that. I hope this helps

How to check whether a comment is flagged on a page using facebook graph api

I have worked a lot on facebook graph api and used fql also. Recently i got a task to get all comments which are flagged on a specific page.
Could someone can help me out to get the solution. I searched a lot but unable to find the solution for the same.
Unfortunately information about whether a comment is flagged is not accessible through any of facebook APIs
http://forum.developers.facebook.net/viewtopic.php?id=86342