Facebook graph api get friends posts
Reading documentation or marketing copy might get me familiar or even excited… but it rarely gets me comfortable or confident. You know what does? Playing around in a sandbox. As more and more companies look for developers who can integrate existing services like Facebook and Google with their products, you can increase your market value by getting acquainted with Facebook Login and the Facebook Graph API. That should be enough to set you up well for playing around in the sandbox on your own. There are 2 common use cases for using Facebook Login:.SEE VIDEO BY TOPIC: Importing data in python - Fetch Data from Facebook Graph API
SEE VIDEO BY TOPIC: Facebook Graph API - Posting Status to a PageContent:
The feed of a Facebook Page including posts and links published by this Page, or by visitors to this Page. There are other edges which provide more specific sets of posts:. These edges share the same reading structure, however the feed edge should be used for all publishing purposes. Please visit our V7. The admin creator of a Page post. If the Page has only one admin, no data is returned.
Any attachments that are associated with the story. See the story attachment node reference for attachments fields. The call to action type used in any Page posts for mobile app engagement ads. Whether the Page viewer can send a private reply to this Post.
Link caption in a post that appears below name. The time the post was initially published. For a post about a life event, this is the date and time of the life event. Deprecated for Page posts for v3. Object that controls News Feed Targeting for this post. Anyone in these groups are more likely to see this post, others are less likely, but may still see it anyway.
Any of the targeting fields shown here can be used, none are required applies to Pages only. Values of targeting cities. Use type of adcity to find Targeting Options and use the returned key to specify. Values of targeting countries. You can specify up to 25 countries. Use ISO format codes. Array of integers for targeting based on education level. Use 1 for high school, 2 for undergraduate, and 3 for alum or localized equivalents.
Target specific genders. Default is to target both. One or more IDs of pages to target fans of pages. Use type of page to get possible IDs as Targeting Options and use the returned id to specify. Targeted locales. Use type of adlocale to find Targeting Options and use the returned key to specify.
Values of targeting regions. Use type of adregion to find Targeting Options and use the returned key to specify. Array of integers for targeting based on relationship status. Use 1 for single, 2 for 'in a relationship', 3 for married, and 4 for engaged. Default is all types. The name and id of the Page, group, or event that created the post. If you read this field with a User access token , it returns only the current User.
If the photo's largest dimension exceeds pixels, it is resized, with the largest dimension set to Whether the post can be promoted on Instagram. It returns the enum eligible if it can be promoted.
Otherwise it returns an enum for why it cannot be promoted:. If this post is marked as hidden Applies to Pages only. Hiding a post hides it in a Page's timeline however it is still visible in other places on Facebook, for example, a link. Whether the post is popular. Based on whether the total actions as a percentage of reach exceeds a certain threshold. Indicates whether a scheduled post was published applies to scheduled Page Post only, for users post and instantly published posts this value is always true.
Note that this value is always false for page posts created as part of the Ad Creation process. An array of profiles tagged in the message text. If you read this field with a User User access token , it returns only the current User. The length of the tag text, in unicode code points. The location in unicode code points of the first character of the tag text in the message. The ID of a parent post for this post, if it exists. The permanent static URL to the post on www.
ID of the place associated with this post. Values include:. Post is ineligible for boosting. Learn why the post may be ineligible. The share count of this post. The share count may include deleted posts and posts you cannot see for privacy reasons.
Text of stories not intentionally generated by Users, such as those generated when a photo has been added. The "Include recent activity stories" migration must be enabled in your app to retrieve this field. Object that limits the audience for this content. Only audiences in the specified demographics can view this content.
The demographics are additive. Each additional value adds its audience to the cumulative targeted audience. These values do not override any Page-level demographic restrictions that may be in place. Values of targeting countries as ISO format codes. Targeting Options of the type adlocale may be returned. Values for targeted regions. Targeting Options of the type adregion may be returned.
Values for excluded cities. Targeting Options of the type adcity may be returned. Profiles mentioned or targeted in this post. The time the post was last updated, which occurs when the post was created, edited, or a User comments on a post, expressed as a UNIX timestamp. Whether the post can be promoted with different video buying options. It returns an empty list when video is eligible. Otherwise it returns a list of reasons why the post cannot be promoted. Profiles tagged as being with the publisher of the post.
This endpoint will be deprecated on April 30th, , for version 3. Apps that have used this endpoint in the last 90 days can continue using it with API versions 3. Apps that have not used this endpoint in the last 90 days will be unable to use it starting on April 30th, Please visit our help center to learn why a post may not be boosted. Please visit our Post Reference doc for all available post fields. You can publish to Pages by using this edge.
Either link or message must be supplied. Note: If the viewer or app cannot see the url of link , the post will fail. This endpoint supports read-after-write and can immediately return any fields returned by read operations.
The action links attached to the post. Controls the display of how a backdated post appears. For example, if you pick month posts will be displayed as 2 months ago instead of an exact date. Used to show either a price, discount or website domain. If not specified, the content of the linked page will be extracted and used.
This field will typically be truncated after 30 characters. Hash of a preview image associated with the link from your ad image library aspect ratio and a minimum of x px for best display. The title of the link preview. If not specified, the title of the linked page will be used. This field will typically be truncated after 35 characters. It is recommended to set a unique name , as Facebook interfaces show actions reported on the name field. A URL that determines the preview image associated with the link aspect ratio and a minimum of x px for best display.
Subscribe to RSS
The feed of posts including status updates and links published by this person, or by others on this person's profile. There are other edges which provide filtered versions of this edge:. GET, new GraphRequest. Please see the Breaking Changes Changelog for more details.
The Graph API is a powerful resource which can be used in various ways. This doc provides a list of common scenarios for apps, an example to get you started, and reference docs to help you build solutions. Access tokens are random strings giving you temporary secure access to our APIs. These tokens include permissions for specific social graph data such as a User's name or age. The best way to get access tokens is to implement Facebook Login.
Get Acquainted with Facebook Login and the Graph API
Collecting Facebook data with the Graph API
The feed of a Facebook Page including posts and links published by this Page, or by visitors to this Page. There are other edges which provide more specific sets of posts:. These edges share the same reading structure, however the feed edge should be used for all publishing purposes. Please visit our V7.
Using Power Query, you can import, reshape, and cleanse any data from a simple interface, so you can mine that data for all of its hidden insights. Discover how to eliminate time-consuming manual data preparation, solve common problems, avoid pitfalls, and more. Then, walk through several complete analytics challenges, and integrate all your skills in a realistic chapter-length final project.
The ID of this person's user account. This ID is unique to each app and cannot be used across different apps. Our upgrade guide provides more information about app-specific IDs. The age segment for this person expressed as a minimum and maximum age.
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. I am following chapter 2 and the examples great book btw but I am not able to retrieve my friends even with the permissions, I am not getting any OAuth error or message.
Subscribe to RSS
The admin creator of a Page Post. Only available if there exists more than one admin for the page. The backdated time for backdate post. For regular post, this field will be set to null. The call to action type used in any Page posts for mobile app engagement ads.
Social media data is collected to support social media research and to build social media archives. To date, most social media data collecting activity using APIs has focused on Twitter. However, I would argue that the most significant reason that it has received less attention is because it is complicated and different from other social media APIs.
Getting Facebook friends with the Graph API v2.0
Socialwg/Social API/Facebook API