How to find a Facebook user page by an app user id - facebook

I can get my second user id by using my mobile app via Facebook SDK.
If I told my second user id to an other Facebook user who uses same mobile app,
can he/she find my Facebook page by using it?
I found out the way to access to my Facebook page.
That is to launch a browser app and fill in the following URL.
http://facebook.com/{ID}
But, I could not find out other way.
I want to find the better way.

Related

Facebook web app: How to store an ID for user recognition

My company is developing a web app, we are looking to integrate this to Facebook, basically our web app provide some reports. Now some of the clients want to show some information in Facebook. Even though, we dont have any experience developing for Facebook we opened a developer account and we selected build a web-app(We are thinking to embed our web-app in Facebook).
So our question is:
how we could store an ID of our client once he install the app in Facebook?
does Facebook store this ID and every time a visitor in our client's Facebook app enters to the app in Facebook, Facebook sends this ID to our website to recognize which client is it?
Thanks for any inside on it.
Your question is very broad. I would advise to start reading the documentation on Facebook Login to get an idea about how it works.
In general, when an user logs in using Facebook, you will receive an App Scoped User ID. That is an ID that is unique and identifies the user for your app (note: for the same user, each app gets a different ASUID). You can use this ID to keep track of all your users.

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.

Facebook Mobile App identify installed user

I have a Facebook App where it can be installed on a users page and then their clients can make bookings with them. As such, the app needs to know who installed the app on their Page, not so much who is currently using it.
I can do this on the web app using signed_request and Page Id. Signed request is not available on Mobile Facebook apps though. Is there any other way of identifying the installed user?
No, in order to get the user's information you'll need them to Login to the app and give you permission to see their data; the workaround you're using elsewhere with the signed_request doesn't apply, because that's specific to page tab apps, and only gives you the 'like' status, not the user ID

How to make Facebook app page invisible so it doesn't reveal identify of our users to their friends?

My site has Facebook Connect to help users with registration and to do this we had to create a Facebook app. And on my Facebook app page, I noticed that it shows list of user's friends who also connected to our site using Facebook Connect. How can I take this down so that we don't reveal the identity of our users who connect to the website with Facebook Connect? In fact, I would like to make the Facebook app page invisible altogether since we don't need it. Is this possible?

Automatic login to Website when User login to Facebook based on cookie

I'm using the Facebook Graph Toolkit and developing ASP.NET website.
I want to create and design a website that has registration that will use a Facebook account as an alternative to my website login/registration.
I am thinking of just storing the Facebook User ID who has approved the use of the FB app in order to identify the user for next time when he/she logs in to my website using his Facebook account.
Scenario here is:
Any browser, user already logged in to his Facebook account (say browser Tab no.1).
Same browser, Tab no.2, user visits my website (he has already registered to my website using his Facebook account, as I store his Facebook ID).
Upon his visit to my website home page, the top corner will display his account name (this indicates that he has logged in to my website even though he has only logged in to Facebook, but never visited my website and clicked on the Login button).
So my question is, how to achieve the scenario of step no.3?
It's quite easy but you need to do some research first. Research will better help you to understand each and every point.
Go to the Facebook Developers API Reference and do some reading.