since read_mailbox is deprecated, I was wondering if there's still a possibility to get all of my messages via API or any other service?
/v2.4/{user_id}/notifications operations as well as read_stream, read_mailbox, and manage_notifications permissions are deprecated in v2.4.
Thanks in advance!
No, there is no possibility to get access to the user messages anymore, you can only get messages of a Page with the conversations endpoint.
Related
I would like to get all the posts and updates that are normally displayed in FB official application for MY account (this includes updates from my friends and liked pages).
I wasn't able to find any details how to get that, the only thing I've managed to get is my own posts.
Anyone got any experience with that using current Graph API verion (3.3)?
All the alternate FB clients (ex. Friendly) must be doing this somehow.
There is no way to get ANY data of users who did not authorized your App. Which means, there is no way to get posts of friends. You can only get your own friends, with the user_posts permission and the /me/posts endpoint. If some Apps access friend data without their authorization, they are most likely doing something that is not allowed.
Here is what I found in their API docs:
There are two scopes:
The user feed requires the user's permission
The public feed has fewer capabilities but doesn't require perms
From the docs: https://developers.facebook.com/docs/reference/api/user/#subscribers
I was testing on Graph API Explorer and noticed that I can't get the public subscribers list from a non-friend person through that API connection even when I can see them via http://www.facebook.com/userId/subscribers page.
It retrieves only the summary info with total_count, nothing on data. Am I missing something or it's unsupported by design?
Thanks!
Yes this is by design, the API doesn't reflect the public interface, it's best not to think about it like this. Always see the permissions needed
You can read the subscribers for a user for your app by issuing an HTTP GET request to /USER_ID/subscribers with the user access_token with the user_subscriptions or friends_subscriptions permission.
So as it says you can only read the authenticated user and the user's friends with the correct permissions.
Does anybody know how to send a notification email via GRAPH API. I found some code in REST API like (notifications.sendEmail) but is there something in GRAPH? Thank you.
No, there is no equivalent, and no plans to add one.
From the Facebook Documentation:
Please note: We are in the process of deprecating the REST API,
and will not be adding support for this in Graph API.
Developers should directly send email to users once they are granted permission.
If someone sends me a note using the facebook email feature (myname#facebook.com), how do you get this message using the API? Is it possible? I can see it in my Private Messages, but it doesn't seem to be coming over when I use FQL to query that table. Is it possible to get these messages?
You can use the Graph API to do this:
$data = $facebook->api('/me/inbox');
Check out: http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Finbox
You need to request the read_mailbox permission from the user. With this permission you will be able to access the messages in the users inbox.
You can read more about facebook permissions at this link.
I've been working for about an hour trying to figure out how to invite friends via API methods, however I don't see any documentation. Is there a current method I'm just not finding?
No, there is currently no Groups API that can do this
Try sending a POST request to
https://graph.facebook.com/GROUP_ID/members?userids=USER_ID1,USER_ID2&access_token=ACCESS_TOKEN
The manage_groups permission must be granted for this request to work