All Projects → nikhilkumarsingh → FacebookGraphAPI-Examples

nikhilkumarsingh / FacebookGraphAPI-Examples

Licence: other
Examples for facebook graph api for python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to FacebookGraphAPI-Examples

facebook-go-sdk
A very simple and easy-to-use Facebook SDK for Golang.
Stars: ✭ 18 (-52.63%)
Mutual labels:  facebook, facebook-graph-api
facebook-node-sdk
Modeled from the (Facebook Javascript SDK), now with the facebook-node-sdk you can now easily write the same code and share between your server (nodejs) and the client (Facebook Javascript SDK).
Stars: ✭ 519 (+1265.79%)
Mutual labels:  facebook, facebook-graph-api
facebook-py-sdk
Facebook Python SDK
Stars: ✭ 15 (-60.53%)
Mutual labels:  facebook, facebook-graph-api
Facebook-Auto-Pilot
Automate common Facebook activities such as posting to groups and pages walls. Effortlessly post to multiple groups or pages.
Stars: ✭ 126 (+231.58%)
Mutual labels:  facebook, facebook-graph-api
facebook-data-extraction
Experiences in extracting data from Facebook with these 3 methods: Facebook Graph API, Automation tools, DevTools Console
Stars: ✭ 81 (+113.16%)
Mutual labels:  facebook, facebook-graph-api
facebook-ruby-ads-sdk
The Facebook Marketing API in Ruby.
Stars: ✭ 59 (+55.26%)
Mutual labels:  facebook, facebook-graph-api
node-htmlmetaparser
A `htmlparser2` handler for parsing rich metadata from HTML. Includes HTML metadata, JSON-LD, RDFa, microdata, OEmbed, Twitter cards and AppLinks.
Stars: ✭ 44 (+15.79%)
Mutual labels:  facebook
FisherMan
CLI program that collects information from facebook user profiles via Selenium.
Stars: ✭ 117 (+207.89%)
Mutual labels:  facebook
desktop
Free and open source streaming software built on OBS and Electron.
Stars: ✭ 3,684 (+9594.74%)
Mutual labels:  facebook
nuxt-facebook-pixel-module
Inject Facebook pixel code
Stars: ✭ 82 (+115.79%)
Mutual labels:  facebook
Bot-Chucky
Python bot which able to work with messenger of facebook
Stars: ✭ 21 (-44.74%)
Mutual labels:  facebook
botyo
Modular chatbot framework designed for group chat rooms on Facebook
Stars: ✭ 17 (-55.26%)
Mutual labels:  facebook
android-pickpic
Ready to use library that allows people to select pictures from their device and Facebook account.
Stars: ✭ 12 (-68.42%)
Mutual labels:  facebook
scrapy facebooker
Collection of scrapy spiders which can scrape posts, images, and so on from public Facebook Pages.
Stars: ✭ 22 (-42.11%)
Mutual labels:  facebook
Wishing-Happy-BD
Wishing Happy BD is a small viral script encoded in HTML, PHP, JS, and CSS.
Stars: ✭ 59 (+55.26%)
Mutual labels:  facebook
Cracker-Tool
All in One CRACKER911181's Tool. This Tool For Hacking and Pentesting. 🎭
Stars: ✭ 181 (+376.32%)
Mutual labels:  facebook
oneshellcrack
a very very fast brute force webshell password tool
Stars: ✭ 42 (+10.53%)
Mutual labels:  facebook
stats
📊 Statistics generator for Facebook Groups
Stars: ✭ 50 (+31.58%)
Mutual labels:  facebook
SimpleOAuth
Simple OAuth 2.0 for Android
Stars: ✭ 15 (-60.53%)
Mutual labels:  facebook
gobo
💭 Gobo: Your social media. Your rules.
Stars: ✭ 87 (+128.95%)
Mutual labels:  facebook

FacebookGraphAPI-Examples

Examples this repository contains

Requirements

  • Python 2.X
  • Python Facebook-SDK

    pip install facebook-sdk

  • Python requests module

    pip install requests

  • For Likes-counter program:
    • tqdm (for progress bar) > pip install tqdm
    • tabulate (for fancy table) > pip install tabulate
  • For multiple groups post sharer program:
    • Beautiful Soup (for scraping the user groups from web) > pip install bs4
    • Selenium (for scraping the user groups from web) > pip install selenium
  • For timeline wordcloud program:
    • WordCloud > pip install wordcloud
    • PIL > pip install Pillow
    • Numpy > pip install numpy
  • Facebook app user access token.(See the steps below to get a token)

Getting a User Access Token

  • Create a Facebook App which will be used to access Facebook's Graph API.

  • Go to Facebook Apps dashboard -> Click Add a New App -> Choose platform WWW -> Choose a new name for your app -> Click Create New Facebook App ID -> Create a New App ID -> Choose Category -> Click Create App ID again.

  • Go back to Apps dashboard -> Select the new app -> Settings -> Basic -> Enter Contact Email. This is required to take your app out of the sandbox.

  • Go to App Review -> Do you want to make this app and all its live features available to the general public? -> Toggle the button to Yes -> Make App Public? -> Yes. This will enable others to see posts by your app in their timelines - otherwise, only you will see the wall posts by the app. Now,you should see a green dot next to app's name, and the text This app is public and available to all users.

  • Make a note of the App ID and App Secret (Click Show next to it; you will be asked to re-enter your Facebook password).

  • Now,go to Graph API Explorer -> In the Application drop down -> Select the app created in Step 2 -> Click Get Access Token -> In Permissions popup go to Extended Permissions tab -> Select the permissions you want -> Click Get Access Token

  • Make a note of the short-lived token shown in Graph API Explorer. Facebook has deprecated offline access, the next best thing is long-lived token which expires in 60 days. We will convert the short-lived access token noted above to a long-lived token.

  • For that, fill in the values in the URL below and open it in a browser:

    https://graph.facebook.com/oauth/access_token? client_id={APP_ID}& client_secret={APP_SECRET}& grant_type=fb_exchange_token& fb_exchange_token={EXISTING_ACCESS_TOKEN}

  • You should see access_token={...}&expires={...}. This new access_token is the long-lived token you can use in your Python script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].