I want to get data from my facebook page posts such as likers names, number of likes, number of comments and global info about my account like the list of users liking my page, ...
I am a bit lost with the Facebook-Graph-API website because there are a lot of packages like Business SDK, Marketing API SDK, Pages API, ...
If someone has an idea of which API it would be very helpful !
Additional question : is it possible to use the facebook graph API with python ?
Thanks
Current Facebook Graph API does not allow you to access personal information about users so you won't be able to get the names of people liking your page or your posts.
Related
Using Wordpress and Python I am trying to develop a post recommendation system that looks at following information:
Additional user profile data that includes job type, interests, age and gender
Previously read posts by the user Posts that have high view count by other similar users
Posts that have high rating by other users with similar interests
And using algorithms in Python matches that data and recommends other posts that would be of interest to that specific user.
Is this possible? How can I get Python to 'talk' to Wordpress via PHP?
Any advice would be most appreciated - there seems to be no-one on google who is looking to build a wordpress post recommendation system.
You can use WordPress Rest API to implement this connection between python and PHP. developer.wordpress.org docs can help you using the word press rest api to commiunicate with the core.
Wordpress Rest API Docs
I am making a website for a teacher and he wants to be able to take attendance easily and he wants me to use the google classroom api to access his roster in his class so that it can then display that list of names on the website and he can easily take attendance there
Roster importing is a common use case we see with the Classroom API. Here's what the workflow typically looks like:
On your website, the teacher chooses the option to import a Classroom Course.
On your backend, call the courses.list method through the Classroom API, which will return a json response.
From this json response, list the titles of the teacher's courses for them to select 1. Note: you'll need to keep track of the course IDs to continue onto the next step.
With the course ID, call the students.list method and display all names on your website for teachers to take attendance.
On each of the links above, you can use the API Explorer to see exactly how these methods behave. I also recommend you check the documentation for managing courses and students/teachers -- there are code snippets for a few different languages, including Python.
Hope this helps!
The best thing to start with is to navigate in the official documentation for Classroom API.
The Classroom API provides a RESTful interface for you to manage
courses and rosters in Google Classroom.
For python, you can refer to the quickstart guide designed for Python implementation. See sample code.
To access students, use REST Resource: courses.students.
You will be able to use the supported methods such as create, delete, get and list.
I have an issue with getting a live list of users with two-step verification enabled from Google Admin using Admin-SDK.
The reporting API can be used to gather reports on who is currently enrolled, but these are not live, they are three days old. The directory API (users & groups) does not have this information.
What I am playing with now is scraping the google admin user page for enrollment status. My question is what is the source of the ID on the google admin page? It is not returned from the Directory API. Is it an encoded version of the userID?
This is the ID I refer to
I have found that you can get an up to date list of users with 2FA enabled. By downloading a list of users from the Google Admin "Users" page.
Click the three dot symbol on the top right of the page and then select download users. Select the scope of the download and then you will have up-to-date documents on who is enrolled.
The reports feature of Google Admin is three days behind, which includes the reporting API. The users API has no way to pull 2FA enrollment, but the download users button lets you know any stragglers.
The reason I asked the question in the first place is because when you force two-step verification via the policy in the Security section, users who do not already have it enabled are locked out, as they are prompted for a two-step verification code which they are unable to acquire. You can create a 2FA exception group which allows them to log in and set it up, but then you must remove the users from the group who have it enabled; just for housekeeping purposes.
I cannot see a way to do this pragmatically using the admin-SDK without using the reporting API, which is three days behind and hence outdated. automated fashion. I'd love to see someone who has made it happen, so feel free to chime in!
I am using google analytics in my website. While improving my website I want more details like - from which page the uses are dropping off. For example they are going to the registration page and then actually they are not registering and leaving from there only. Or most users are not reaching the registration page itself. In short my requirement is to get the data about from which step/page the users are giving up in the flow.
I have analysed the data getting from google analytics but didn't found. Is there anything available in the google analytics or any other analytics framework available that suitable to my requirement for Python/Django website.
To add to #Eike's answer, you might also want to check out the Behavior > Behavior Flow section of Google Analytics. It will draw on screen the flow through which Users navigate on your site, including drop-off metrics to help you analyze where your users Exit.
Alternatively, you might also want to set up Goals for your most important actions, like User Registration. You will then be able to view a Funnel of your micro-conversions, helping you understand where your Users might be abandoning their actions.
I've searched on google and have taken a look at the facebook site for the apis, but facebook does not have an official SDK for python. I looked at the third party api for python listed on their site that could be used to communicate with facebook. After having visited their official site and github repository there is a small readme file that shows basic usage, it seems to assume that you are already connected to facebook, and the example at the end of that page shows a cookie example.
The short examples seem easy enough but there is no explaination of anything and i dont find any more documentation about anything else.. there does not seem to be any information about all available methods you can use with the api..where do the people who are using this api get the documentation to find the methods available so they are able to do work with this ?
Since i guess people are pretty tired of signing up for yet another service i would like to offer to sign in with their facebook and twitter accounts (although thats a no no for the ad people who would like to have access to the user profile in order to have targeted words/links that generate revenue). Im using django and have taken a look at the django-facebook api as well but the documentation seems to just point to the github repository which doesnt have any documenation, almost just like the other api pointed out above. Basically i dont find any documenation about how to use the apis except from the small examples.
And like always, i appericiate your time answering this, always nice to add an explaination to any code so the answer is a little more usefull, thanks.
My info might be a little bit out of date as I was working at a startup implementing a Python backend on Google AppEngine that interfaced with Facebook, used FQL, AppEngine datastore etc, about a year and half ago.
There are several third party APIs you can use, for instance, https://github.com/jgorset/facepy or https://github.com/pythonforfacebook/facebook-sdk. The reason there is no 'documentation' on the github site is because it implements access to the API that IS documented on Facebook's developer pages https://developers.facebook.com/docs/graph-api/.
But that is in a perfect world. My experience with the Facebook APIs is that they don't always do what is said on the dev pages. You don't get consistent return data, FB Realtime API not/inconsistently notifying for certain connections (music, movies, books, tv). Unfortunately, I think they have many non-documented APIs that are only available to the big app players.
Where I got my real world working info and learned how to access Facebook using Python was right here on stack overflow.