Can anyone help me with a step by step sample on how to get Get Facebook user album=> photos and inserted into Mysql db on a another website using PHP
like some kind of import this facebook user's albums from facebook script for a website
Thanks
Build a web server that can host your php and mySQL. Make sure you get a valid SSL cert.
Research the Graph API's album to determine what data structure to implement. https://developers.facebook.com/docs/reference/api/album/
Get a facebook app configured. https://developers.facebook.com/apps
Play around with the graph API to understand your queries you will need to write https://developers.facebook.com/tools/explorer
Use the PHP SDK to write your integration with Facebook https://developers.facebook.com/docs/reference/php/
Related
I am trying to connect to the Facebook Graph API using the PHP SDK and view recent posts of a business account. BTW: I know there is a widget available for this task, but due to speed constraints, I would rather access the API and cache the response myself.
So I used my personal account to sign up at developers.facebook.com, created an app and obtained an AppId and AppSecret. My question relates to obtaining an access token for use with the graph API using the PHP SDK.
The examples on the getting started page shows how to obtain an access token by manually clicking a link and receiving a callback to my website. I am not creating a public app as such, I don’t want a manual login because my script will be run periodically by the server.
In any case if I click the Log in with Facebook! link, I get the following message which I don't understand:
The Twitter API provides automatic authentication but I cannot understand how to impliment this using Facebook. Can anyone point me in the right direction?
I'm working on a custom wordpress plugin for my site. I have multiple accounts so I'll need multiple feeds. I'm using the Fascebook SDK v3 (My server has an older version of PHP that the newest SDK doesn't work on). I've downloaded and included the correct files, no errors.
I then logged into one of my accounts and created a new app to get the App ID and Secret Key. However, my plugin doesn't work because it says it's not "live".
I need to do a submit and review that requires icons, screenshots, etc. However, I don't want my app available to everyone just my page.
You don't need to create a Facebook app for this. Apps are for situations where you need to access or modify information on other users' accounts. In situations like this one, where you only need to work with information which you personally have access to, the Facebook Graph API should be sufficient.
You will need to create a page access token for the page in question, then access endpoints related to the page to get information on the page, or read its posts.
I am having issue while fetching Fb Id from Graph Search 2.0 API .
For the same account I am getting two different fb Id. I want to have a single ID, from android App and website (PHP).
Android : 100003767313938
PHP web : 491515637650676
I need to make both same.
Please suggest , How can I get both same fb id ?
That is because you probably have your android app and your facebook app configured in a separate project in facebook dashboard. Facebook sends App-scoped User IDs to any external requests. See my answer in a similar question here. Also have a look at here. The solution is to make android and webserver application inside the same project and adding platform web and android.
Update
Under Settings-> Add Platform add your required platforms
Can I access My own Database(on my server) using Facebook API's or its just not possible as Facebook wont allow to use Database from other web server.
I want to create an facebook application that will take all the info from friends profile and save it in my database(i.e on my server).
Actually i have not worked on any Facebook application, its just a Doubt!
I want to create an facebook
application that will take all the
info from friends profile and save it
in my database(i.e on my server).
That is possible and you can save into your databse but be aware of facebook privacy policy.
I'm looking for some advice on if the following is possible
I know it's possible to upload videos via the facebook API, but is it also possible to tag users to those videos? It seems you can with photos, just not videos?
Is it possible to run an application on my facebook account which a visitor can give permissions to access their account video section, instead of having the user install the application to their account?
Here's what I'm trying to do
Video archive -> User visits a profile with an application installed, selects something, and the application then posts the video to it's own video section on the account that's stored on facebook, and tags the user who requested it
I'm basically wanting to bypass having the user install the application on their profile, and trying to have just one application running on a "host" profile.
If that makes sense, if not, please request some more information. The facebook API system is pretty much a minefield for new developers
Using the Facebook Graph API it does not currently seem possible to tag a user in a video. Facebook are still migrating their old APIs to the new Graph API format, so it seems likely that this will be an option in the future.