I want to send something like feed seen to direct user only (I know the mechanism how to do it), but from something like page. As I've understood only public feeds are accepted for pages. Is there any analog object, that could be associated with my company and that could be an author for private feeds, seen only for direct users?
No, as indicated at https://www.facebook.com/help/352402648173466?in_context, even if you enable settings:
What you can do is narrow the audience by conditions(age, demographic...etc), post feed specify audience by user id is impossible:
My first thougth was send private message as the solution, unfortunately, as indicated at https://www.facebook.com/help/273376269375028/, what you can do is only
send messages to people who've contacted you on your Page
You are able to retrieve a page's feed by querying the following graph endpoint:
https://graph.facebook.com/{group_id}/feed
Please see the following reference: https://developers.facebook.com/docs/reference/api/page/#feed
Posting to a feed requires you to have the access_token for that page, which can be retrieved by calling /me/accounts using the access_token of a user with admin privileges to that page.
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
There are a lot of question about similar topic, but none of them is actual and gives an answer.
I try to get public data from random facebook user via the facebook graph api.
First of all here is the documentation about getting user informations, and the endpoint looks like this:
GET /v2.9/{user-id} HTTP/1.1
Now I try this in the facebook graph explorer. But now I need the {user-id}
-Where or how do I get this user-id when I have the url to the users profile?
Lets say the user-id is given - to get the user-id I used findmyfbid.com
But the only response I get is the public name of the user and not more.
-So is it possible to get public user profile data, withouth having the users permission for your app? And if not, where is this written in the documentation?
I was wondering if its possible to get one's facebook profile (to be exact,'profile url') through their API?
I need an api to get fb profile link using a matching email address. I dont want to login to facebook though.I was trying to search for this but it seems you need to log in to facebook to get that.
Any idea or is it feasible?
You need ID of the concerned user which can't be achieved without using the Facebook Login, since Facebook login is the starting point to get the current user info (/me).
Search API could have helped you since you have the email ids of users, but unfortunately this api doesn't support user search with email!
So, answer is simple- NO, you cannot get the ID (profile link) of the user without using the facebook login.
Not that I can think of. Facebook's Graph API gives you some public info but that info given depends on the users Facebook's settings on what is public or not. You could maybe get some users profile picture but not others, making it not a very viable option for practical use. Hope that helps
I am helping out a friend with a site for a venue that lists all events on FB with a location, ticket URI, time, etc.
I have found lots of info on how to get the data, but what I am unclear on is how to get public events without being logged in to FB.
What type of tokens do I need to have a website simply pull events data and display it to visitors?
Basically, what I am attempting to do is show a set number of upcoming events and assume that the visitors to the site are not logged in to FB.
On this page, https://developers.facebook.com/docs/reference/fql/event, it says this:
Permissions
To read the event table you need:
a generic access_token for public events (those whose privacy is set to OPEN)
a user access_token with user_events permission for a user who can see the event for non-public events
an app access_token with user_events permission (for non-public events, must be the app that created the event)
a page access_token with user_events permission (for non-public events, must be the page that created the event)
I am not looking to get help with the code really, I am just having trouble figuring out how the access/auth process works.
It appears FQL may be the best option so I can do queries based on date ranges, but alas, I am stuck on the access/auth/token part.
What do I need to have in place to be able to list a Page's events on a 3rd party site?
If anyone has any advice there, I would appreciate it. Thanks.
Just to explain to others, you cannot get ALL the events in the city by graph search. You need to refine it either by user details or some other metric.
I figured it out.
This question helped, but was not correct and there is a syntax error in an answer:
Get Facebook events from public fan page
From what I found, you need to become an FB developer, create an app, get an ID and secret.
Use the SDK (PHP in my case), and this question had a good example of returning the list I want:
Link from ticket_uri is opening a blank page
I am having the same issue though of getting blank pages on the ticket link if the user is not logged into FB.
But my original issue is solved.
How can I reply to a private message on a fan page using the Facebook Graph API in a Facebook app?
I am able to retrieve private Messages from a fan page
I am able to reply as a user using chat API (User to User only)
I have valid tokens
I have read_mailbox, read_page_mailboxes permissions, and the following permissions to the page too:
ADMINISTER,
EDIT_PROFILE,
CREATE_CONTENT,
MODERATE_CONTENT,
CREATE_ADS,
BASIC_ADMIN
I am doing it as described here.
Some claim to have gotten around this. How have they managed this?
The documentation you linked to answers this question quite clearly.
From the docs:
**How to Reply**
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.
You can reply to a user's message by issuing an HTTP POST to /CONVERSATION_ID/messages with the following parameters. A conversation ID look like t_id.216477638451347.
Parameter Description Type Required
message The body of reply string Y