php get facebook information with user and password - php

How do I extract my own Facebook information programmatically (without login dialog) using the PHP Facebook SDK.
Is there a way to feed facebook with my username and password and get back my profile information?

There are no endpoints for that. If you just want to extract your own info, why don't you use the graph Explorer: https://developers.facebook.com/tools/explorer
You can generate an Access Token with it, and then query for your data.

Related

Get user infos from facebook Profile URL

Good morning all,
I must create a site in PHP where we enter the url of the facebook profile, and then it must retrieve some information from the profile:
The profile picture
The name
If the profile and verify
I wish I could do it without this connection.
What to give me a clue?
(I succeeded with tiktok, instagram, etc.) but with facebook it's been a while that I'm looking for the solution
This is not possible for 2 reasons:
Scraping is not allowed on Facebook, you must use the API for accessing any data
Any user data is unavailable with the API, unless the user authorizes your App to access his data
The correct way to implement verification is to implement login with the Graph API and let the user authorize your App. Btw, this still does not mean you can verify his profile url, because you will not get the real URL, not even with authorization.

Android Save Login Facebook Information into Mysql Database

I've already success with Facebook login. How to save facebook user information into database mysql like name & email?
Check this for mysql connection; https://gist.github.com/cofearabi/5039135
You can access Facebook username with Facebook graph api
Explore Facebook graph api from the link below
https://developers.facebook.com/docs/android/graph

get offline access_token from instagram api to get users images

Hi is this possible to get access_token in instagram api without login.
I am using server side script that will receive a user name of instagram like "snoopdog" and then my script will get photos of snoopdog from instagram api. but when i am trying to generate access_token it is asking me to login on instagram.
i am using this url to get photos.
https://api.instagram.com/v1/users/1574083/media/recent?access_token=3160711211.5b9e1e6.3b523f746c7c487f8f63743f15e16180
But if i want to generate access_token every time i need to login ?
is there any other way to get offline access token ?
To get access token, you need to login and give permission to your client.

Twitter API - What to store on app side?

So I want people to be able to login to the site via Twitter. For facebook I store the facebook id and the access token. In twitter from what I gather I need to store the twitter id, access token and secret token? Is that correct if I want to do things such as post to a twitter feed? Im using the twitter php sdk
I believe you only need the access token and the secret token (the twitter id is not required).
Actually, now that I think about it, since you are using Twitter for login, the Twitter id would be required too (for login purposes, not posting to Twitter).
See: Twitter API - Making a resource request on a user's behalf

How to use access_token (of Facebook Graph API)?

I am trying to get FB user's full name using the access_token. I have the access_token with me but I am not sure how I can use it to access user information.
I have read the documentation and it says to get more user info we can use:
https://graph.facebook.com/userid?access_token=...
So, does this mean I need to use cURL to get response from this URL?
Btw, I am using PHP.
Thanks.
Accesstoken you can use for getting the information of the user which is necessary. Also if you have asked offline_access permission from user, you can store this accesstoken in your database and can get the user information even if he not logged in with facebook. That means, from next time you automtically get the information using this token.

Categories