URLs of facebook photos retrieved using access tokens are permanent or temporary - facebook

According to my web application facebook-page owners and facebook-users can keep their facebook photos in their profile gallery. So they would login in my facebook app and provide required access while configuring their profile in my web application. The web application will retrieve and enlist all photos through graph api, the user is required to select among them for keeping it in their gallery. I don't want to take any burden of storing those photos in my database so I would just store the URLs received. Further when other users of my web application views that person's profile or gallery, he/she will find those selected photos.
So are these URLs of photos retrieved through access tokens permanent? Will they work if the access token expires or user removes my facebook app from his/her facebook account in future or any other such activity? Or these photo URLs are permanent until the user disable or deactivate his/her facebook account?

Related

How to get the user's list of accounts in Facebook API?

Good day, the app can't get access to the user's list of accounts. "me/accounts" returns an empty array.
I have checked this by creating a test application in the user's account and opening access to "pages_show_list". I executed it in Graph API Explorer and got the list. However, through another application, I can't access the list of accounts, even though it has Advanced access for pages_show_list.
When logging in through Facebook, I request "pages_show_list, instagram_basic, instagram_manage_messages, pages_manage_metadata, pages_read_engagement, public_profile". I have Advanced access to these permissions in my app.
When opening the Facebook login, it only requests the name and profile photo. Do I need to get any other permissions?

Do i need the Facebook PHP SDK for Page Tab Apps?

I'm developing a Facebook Page Tab App. The files are located on my own server and i've created a Facebook App.
Now i'm trying to access the user's first name and i found different ways to get user informations, e.g. the $signedrequest (for the user ID) or the Facebook PHP SDK.
So do i need the SDK, e.g. for Graph API calls, or are there other ways to get informations from Facebook in my Page Tab App?
Using the SDK i get a lot of errors like An active access token must be used to query information about the current user., even if the user is already logged in.
If the user have not signed in to your app you will not get the user name or user id from the singend request parameter. It will give you information if the user likes the page, is admin of the page and additional app_data.
Using the php-sdk you can use the getLoginUrl() method, https://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/, to get the access token needed to fetch user name, user id etc.

How to get instagram user ID/access tocken from iphone app

In my iPhone app,there is a switch for sharing the photos to users instagram profile.
How to get the instagram id in my app.
(i am not sharing the posts directly from the app,i woud like to send the particulars to server,from there sharing happens-)
I have registered my app in Instagram and got CLIENT ID,Client secret
You have to use those ID and SECRET to authenticate with Instagram to get the access tokens for your users to make requests to the API, check here to see how you can initiate the authentication flow and then find a solution that fits what you're trying to do.

Showing currently logged in facebook user's avatar

Is that possible with facebook api, to show the currently logged in facebook user's face on a webpage (like facebook faces, but with the current user only)? Without requiring the user to accept an application etc, etc.
No. A user has to grant the app permission to access their data. See here for more info on permissions.

Login system like Disqus for Twitter and Facebook

How do they manage to get user to login to Twitter / Facebook through Javascript so smoothly?
I am trying to replicate it for the web app. Basically, the user only needs to add a javascript snippet to their site to kickstart but I am clueless as to how to integrate facebook and twitter connect seamlessly.
Do they store access tokens after successfully authenticating a user?
Short answer is yes, they store access tokens after successfully authenticating a user.
After you try facebook and twitter apis, you'll see that, they both returns ids for every user who succesfully logged-in through your application. You can then simply add those ids pairing with the platform they logged in to your database. You can then use that data to track users easily.
You need to
Create applications on both platforms
Have pages for each provider to check if user performed a succesful login
Check if user is a newcomer and add that user to your database if so.
Set a session or cookie variable of user's local id in your own application or do whatever you are normally doing to track if a user logged-in as that user is your local user.