logo
down
shadow

Facebook Graph API - Getting All Friends Likes


Facebook Graph API - Getting All Friends Likes

By : Phillip Olivier
Date : November 17 2020, 11:52 AM
Does that help Friend permissions are gone, you can´t get the likes of friends anymore. Check out the changelog for more information: https://developers.facebook.com/docs/apps/changelog
That means, it will still work in v1.0 Apps, but it will stop working for those after April 2015. You can´t even get all friends after that, since v2.0 you can only get friends who authorized your App too with /me/friends.
code :


Share : facebook icon twitter icon
Any way to pull likes by dates from facebook graph api? (New Likes instaed of Global Likes)

Any way to pull likes by dates from facebook graph api? (New Likes instaed of Global Likes)


By : Theatre Owl
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Have a look at https://developers.facebook.com/docs/reference/fql/insights/#page_users - you (by which I mean the user of your app) need to be admin of the page though. You get page_fans, *_adds, *_removes, etc.. On how to execute FQL using the Graph API: https://developers.facebook.com/docs/reference/fql/
Why are some friends' likes unavailable through the Graph API or FQL?

Why are some friends' likes unavailable through the Graph API or FQL?


By : Sandeep Sharma
Date : March 29 2020, 07:55 AM
seems to work fine In addition to your friends' privacy settings for their Likes, there's another privacy setting which dictates how apps you use can access their data.
Generally an app you authorise to connect to your account is able to see anything you can, you're effectively delegating the level of access you have to your data and your friends' data to the app.
Facebook Graph API: get all the friends' likes

Facebook Graph API: get all the friends' likes


By : Mario
Date : March 29 2020, 07:55 AM
This might help you I don't particularly fancy the idea of getting a list of friends with 'me/friends' and then iterating over the list to get likes for a particular friend with '%id%/likes' - this takes way to long. , You can use FQL multi-query to get all at once, here is how:
code :
{
"friends":"SELECT name, uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())",
"friendsLikes":"SELECT uid, page_id FROM page_fan WHERE uid IN (SELECT uid FROM #friends)",
"pages":"SELECT page_id, name FROM page WHERE page_id IN (SELECT page_id FROM #friendsLikes)"
}
Facebook FQL: Getting pages a user likes, which at least one of their friends also likes

Facebook FQL: Getting pages a user likes, which at least one of their friends also likes


By : MikeG
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , for those that have answered this question. Unfortunately all of the solutions are very slow, and they do not obtain all of the pages (I'm guessing due to timeout).
What I did is get all of the user's pages. I then filtered these down to the pages I am interested in. After that I look to see if friends have liked the pages:
code :
likes = fql("SELECT name, page_id FROM page WHERE page_id IN (SELECT page_id FROM page_fan WHERE uid=me())", access_token);
pages = []
for x in xrange(len(likes)):

    # Check that the page is an occasion

    conn.execute("SELECT 1 FROM occasionPageIds WHERE pageid = " + str(likes[x]["page_id"]) + " LIMIT 1");

    if len(conn.fetchall()):

        # Check that friends like this

        friend_likes = fql("SELECT uid FROM page_fan WHERE page_id = " + str(likes[x]["page_id"]) + " AND uid IN (SELECT uid2 FROM friend WHERE uid1=me())", access_token);

        if len(friend_likes):
            pages.append(likes[x]["page_id"])
Facebook Graph API: Get likes from user/likes after specified time

Facebook Graph API: Get likes from user/likes after specified time


By : RrrrrzzzZ
Date : March 29 2020, 07:55 AM
like below fixes the issue I guess you have to use pagination to get all entries, and detect new ones on your own by comparing them with your database entries. But you don´t need to check on your own, that´s what the Realtime API is for: https://developers.facebook.com/docs/graph-api/real-time-updates/
Debug the result, maybe you even get the new likes directly in the API response.
Related Posts Related Posts :
  • Testing logging output with pytest
  • How do I change my default working directory for Python (Anaconda) on VSCode?
  • .lower() for x in list, not working, but works in another scenario
  • Program gives error "List indices must not be string"
  • pyqt: Memory Usage
  • Confused about classes in Learn Python the Hard Way ex43?
  • Extracting unrecognized information from many CSV files
  • How do I connect to Postgresql server from Python?
  • Append rows to a pandas DataFrame without making a new copy
  • Scrapy: Importing a package from the project that's not in the same directory
  • launching Excel application using Python to view the CSV file , but CSV file is opening in read mode and cant view the d
  • Making a list in user-defined functions
  • Pyserial microcontroller to host communication
  • Plotting a line in between subplots
  • function not returning value. Error "NameError: name 'urlss' is not defined"
  • How to perform cartesian product with Tensorflow?
  • Multiple independent random number streams from single seed
  • I Need a simple and short python3 code that count secounds in a background process
  • No module named constants
  • from django 1.4 to django 1.5- argument 'verify_exists' what s replacement?
  • Slash replacement inside a raw string
  • Reordering columns/rows of a pivot_table?
  • MySQLdb.cursors.Cursor.execute does not work
  • Python module being reimported when imported at different places
  • Is the Session object from Python's Requests library thread safe?
  • Python Regex: Finding First and Last Names
  • Order by selection in List view of OpenERP 7.0
  • Reading input values in ipython notebook
  • List of dictionaries - how to read a specific value in a dictionary
  • writing os.system output to file
  • Create dictionary from points list and multiple attribute lists
  • How to write a table line by line with for loop
  • Map projection and forced interpolation
  • Django FBV's "render_to_response" equivalent in Class-Based-View?
  • Paramiko raises "SFTPError: Garbage packet received"
  • python pandas operations on columns
  • python list appending is not working
  • Speeding up matplotlib scatter plots
  • For each element of the list find closest date from a different list
  • How to prepend new rows at the beginning of an existing csv file?
  • how to make database robust to process kills with sqlite postgress and sqlalchemy?
  • finding a set of ranges that a number fall in
  • New line in python print() function
  • How to clear os.environ value for only one Variable in Python
  • Why does python append a modulo(%) operator to the end of a newly opened file?
  • recursive function or non-recursive that doesnt use 2 ** approach
  • Extract floats from a String using regular expression
  • How to solve: ImportError: No module named django.core.wsgi in Apache2 log?
  • What's the most concise way to include multiple statements in a Python switch case?
  • python xml pretty print not working
  • Can we use NumPy in writing a website?
  • Called bashscript doesn't start up GNU screen session
  • Reading fortran direct access data and writing formatted data - faster with python than with fortran?
  • Language supporting nested definition of functions
  • Find elements which exists in the most of the lists
  • Templating library in node.js similar to Jinja2 in Python?
  • Python Syntax Error, 'break' is outside the loop
  • Replacing spaces with hyphens
  • How to open a csv file in Microsoft Excel in Python?
  • ModuleNotFoundError: No module named 'users'
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org