Facebook server-sent event with "live comment" endpoint requires user_videos scope - facebook

I am implementing a sever-sent event client to get real time comments of a Facebook live video.
According to this documentation, it only requires the token to have publish_video. But it keeps returning error 401.
If I request user_videos scope, the error will not occur anymore and I can receive comments of the live video.
Is it a facebook bug?
Any help would be appreciated.

Related

Facebook Graph API conversation reply limit lifted?

I developed while back a facebook graph api app that used the conversations edge to read messages and then reply back, this was done using the v2.3 version of the API.
Back then the API at
https://developers.facebook.com/docs/graph-api/reference/v2.3/conversation/messages#publish
stated that:
Note that a page can only reply to a user's message. It cannot
initiate a private message with a user. Also, a page can respond not
more than twice to a user's message before the user has replied back
But now i have to upgrade to v2.4 and i can't seem to find anywhere the above statement.
Does anyone now if this limit has been lifted?
https://developers.facebook.com/docs/graph-api/reference/v2.4/conversation/messages/
Pages can only reply to a message - they cannot initiate a conversation.
It´s right there, not all of it though. Just try to post more than 2 reply messages. I don´t think it has been lifted though, there is nothing about it in the changelog.

How to determine privacy status of Facebook post using graph API?

I'm using the Facebook graph API version 2.0 in Node, via the fbgraph module.
I'm posting to a user's feed with the token they've authorized. While authorizing, they are able to choose what privacy level my app will be posting at, by default.
Ideally, I'd love to know what privacy level the message was posted at in the response from Facebook from the posting process. But there doesn't seem to be a way to do that.
So now I'm trying to use the Graph API to request details on the newly posted message, to determine it's privacy level. In their docs, they show a "privacy" field that should come back, with all of these details. But when I actually use their Graph Explorer tool to test this out, I never get back that field. If I explicitly request the privacy field in my call, it says it doesn't know what that is. "(#100) Unknown fields: privacy."
By default I'm getting back: id, from, message, updated_time, and likes.
How are we to find out the privacy level of a post on Facebook?

Add/Invite Users to a Facebook group using Facebook Graph API

I've got an iOS app using Corona(ie. in LUA; not ObjectiveC; though I'm not requesting specific Corona help, just how to do this in general) that I want to add or invite users of the app to the Facebook group. I've had success with members of the group posting to the group's wall from my app, but can't for the life of me get the "Invite Users" bit of code to work for people who aren't yet members of the FB group.
All of the posts on this website say it either can't be done (presumably because they're from before the Groups API was available) or just repeat what the Facebook documentation says (which I've read a million times, but maybe don't fully understand).
From Facebook's Group documentation (https://developers.facebook.com/docs/reference/api/group/)...
"Applications can invite users to a group by issuing a POST request to /GROUP_ID/members/USER_ID with an app access_token."
After figuring out how to get the app access_token (as opposed to the user access_token), I've tried using 3 different methods to test this out; Corona's facebook API request() command, making a PHP page with the command, and even tried Facebook Graph Explorer to try this code and nothing works.
All of them along the lines of...
https://graph.facebook.com/myGroupID/members/nonMemberFBUserID?access_token=myAppsAppToken
Corona gives me an HTTP 200(which should mean OK) but the facebook request returns an error (I've got a question in their forum, but I don't often get much help from them). My website PHP page returns an empty data object ala: "{\"data\":[]}". And the Facebook Graph Explorer just lists all of the existing members along with some cryptic "paging" object with a "next" web address in it. If I go to this address directly, it says:
{
"error": {
"message": "An access token is required to request this resource.",
"type": "OAuthException",
"code": 104
}
}
But I passed an access_token as a parameter! Does this mean I also need to pass a user access_token? And if so, what do I call it, if the access_token variable is already used for the app's access_token?
The reason why you are getting an empty json object is because you are doing a GET request. if you change it to a POST request it should work.

Facebook api feed : how post message in a single user wall?

I use facebook SDK javascript to post a message from a website to my wall on facebook.
When I post, I can choose the users who can read my message.
Can I change the script to send a message directly to one or any users automatically?
To send a private message through facebook API is not intended behavior. to prevent spam it is assumed. This can be overcome by sending an email to facebook_username#facebook.com and it will appear as an instant message to the user. This is NOT an intended solution however and it is EXPRESSLY discouraged in the facebook docs.

Was my Facebook wall POST successful?

I can post on my friends wall after authenticating the Facebook Graph Explorer (or any app with publish_stream permission for that matter).
Facebook Graph Explorer
However, how can I validate in my app that the message has actually posted successfully to my friends wall? In some cases, I can go to my friends page and see my message appear, however, in other cases, I notice that there is no message on their wall.
In either case, Facebook returns an object id, like:
100002349949136_184284371659893
Yet, when I view these posts on the graph (link above), they both return false... The rules of my app require that a message is posted on another user's wall.
How can I validate that a message appears on a Facebook wall? Or how can I filter user's who have restricted 3rd party apps from posting on their walls?
The post must be publicly viewable if you're attempting to read the post without an app access token. If it is not publicly viewable, then you must have read_stream permission set in the app you're attempting to read the post with.
Here is the documentation. https://developers.facebook.com/docs/reference/api/post/