I’m building a react native app and I’d like the user to be able to share their facebook profile. Is there a way, using the facebook api or sdk, to give another user a link to view someone else’s facebook profile?
https://developers.facebook.com/docs/graph-api/reference/user/#fields:
link
string
A link to the person's Timeline. The link will only resolve if the person clicking the link is logged into Facebook and is a friend of the person whose profile is being viewed.
You’re gonna need user_link permission, https://developers.facebook.com/docs/permissions/reference/user_link
Related
We have a platform where users get logged in with Facebook. Now on customers demand, we want to provide a feature where we will request logged in users profile link at the time of login via user_link permission and user can share that link to anyone with just one tap. And on the other end, the other user who will receive this link will able to see (on facebook app or on Web) the sender's profile and if interested they can get connected.
But the issue is, I am not able to see user profile got as user_link. Its seems like I can only use this link if he or she is already my friend. If so then how can I implement this feature in my app? also if I am wrong at any point please correct me.
Its seems like I can only use this link if he or she is already my friend.
That’s exactly what the documentation says, https://developers.facebook.com/docs/graph-api/reference/user:
link: A link to the person's Timeline. The link will only resolve if the person clicking the link is logged into Facebook and is a friend of the person whose profile is being viewed.
-
If so then how can I implement this feature in my app?
You can’t; Facebook has deliberately designed this feature with this restriction, to better protect people’s privacy.
I am using facebook to login to my website. The website does not need any information about the facebook user's friends' list. I am interested only in the user's general information.
https://developers.facebook.com/docs/reference/login/public-profile-and-friend-list/ shows the friend list also as the minimum information shared by Facebook.
Hence wanted to check if there is any way to restrict the user friend list information from being passed on from facebook to my application?
No, when a user authorize an application the minimum data shared is it's basic information and friend list.
Unfortunately you cannot change this.
Official documentation:
When someone connects with an app using Facebook Login, the app can
access their public profile and friend list, the pieces of information
that are visible to everyone. Each other piece of information that
someone adds to their Facebook profile is secured behind permissions.
Source: Facebook
Hi guys I am working on a project:
the client's goal is to let user simply share the photo on their facebook wall with some fixed message. and the project is simply a website, no login is needed, user will just come to the machine and take a photo and click to share to facebook account, of course user will be required for permission to let my website to access his fb account.
so what should it be? simply the like button? or maybe something more tricky like using the Graph API? I am still reading on it at the moment since I am really new to Facebook. Please give some hint.
By the way I may use wordpress for my backend
Thanks!!
First you will need user to give your app permission to post on the wall, next after the photo is taken you will need to post it on user's wall using Graph API (you can find out how to do that here)
Is there anything I need to do to make posts users make on their wall via a custom ios application using it's own facebook app id, also appear on app's (facebook app it uses I mean) own facebook page?
I would expect this to appear automatically but it doesn't seem to be the case.
In order to read one's Facebook wall, you need the access token to authenticate reading. This will give you access to all non-public wall posts. From this, you can pass the newly posted content to your page through the feed action.
Reference: http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html
Enjoy and good luck!
is it possible to know which facebook user clicked on a link that a user of my app shared on facebook?
Let me rephrase for clarity:
I want to know which friends of my app user have clicked on his shared links.
Thanks for any hints.
No, Facebook does not share this information.
What you could do is have each link shared point to your webserver, prompt the clicker to authorize your app, then you can grab the user id.