Get Facebook public profile information [closed] - facebook

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am wondering if you can get the public profile information of the user if they don't authorize your app. I am using Facebook login inside a page tab and a canvas page. Is there a way to get the user Facebook ID if they don't accept the login permission dialog? I know if i am able to find you the userid i can fetch the public profile.
Thanks

You have two questions in 1 question:
Can I get public information without Facebook login:
Yes, that is possible: You can use the Graph explorer to check that out https://developers.facebook.com/tools/explorer/
You will get basic information, like name, first_name, gender and locale
Question 2: Can I get the Facebook ID without FB login:
It's not possible (anymore). You must have a valid session (e.g. with a Facebook login) in order to get a facebook user id.

Related

Getting Facebook user's public education info [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
If I obtain a Facebook user id using the Graph API, is it possible to access that user's education that he publicly displays on his profile without him giving permission to my app to do so?
If I obtain a Facebook user id using the Graph API, is it possible to access that user's education that he publicly displays on his profile without him giving permission to my app to do so?
No, that is not possible.
Publicly available via the UI, does not automatically mean publicly available via API as well.
The user needs to login to your app and grant it permission to access their education information.

Few FB user unable to get all friend list using facebook graph api? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am using facebook graph api(php) in our app. After user login in facebook using my app then some user getting all facebook friend list and few user not getting.
Please suggest.
Since v2.0 of the API, you can only get friends who authorized your APP too. You can NOT get ALL friends - unless you need them for tagging or inviting. Although, inviting is only possible for Game Apps with a Canvas implementation.
You only get all friends with a v1.0 App created before end of April 2014. If you get all friends with any other App, report it as a bug.
More information: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app

extract data from facebook [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
We are trying to identify behavioral analysis of users in fb.
So unlike twitter, where we have api to connect to twitter and extract data.
We will have to create an interface in facebook, obtain necessary permissions from users and then extract data.
In order to connect, we need information of specific keys like
Consumer Key
Consumer Secret
Scope
Oauth Key
Oauth Secret
If the approach is right, kindly update on these values
Else suggest how to proceed further.
Thanks in Advance.
You can´t get any data of users who liked your Page, you can ONLY get data of users who authorized an App. Information on how to create Apps can be found in the Facebook docs: https://developers.facebook.com/docs/facebook-login/v2.2
Information about what you can get from authorized Users: https://developers.facebook.com/docs/graph-api/reference/v2.2/user
If you want to get statistics, use Page Insights:
https://www.facebook.com/{your-page-id}/insights/

How to send a message to or post on wall of a facebook friend using spring social facebook api [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have an application which imports facebook friends as contacts using spring social facebook. I want to invite this facebook friends to join the app. Is there a way to send a private message to selected facebook friends or to post on selected facebook friends' wall using spring social api?
thanks in advance
You can´t post on the wall of a friend (because that would always be spam), and you can´t send a message with the API.
You may want to read this: https://developers.facebook.com/docs/apps/faq#invite_to_app
The proper way is to use the Send/Message Dialog, or the Request Dialog if your App is a game.
No, this isn't possible. In order for you to send messages of any kind to a Facebook user, you need that user's permission to do so.
If someone logs into your site with Facebook Connect, they are explicitly agreeing to share their Facebook data with your site, and you will then be able to send that person a message through the normal channels. You would also be able to fetch their friend list. However, you can not send messages to the friends.

How to integrate Facebook to an iPhone application using Graph API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am developing an iPhone app which needs Facebook to be integrated to my application. I tried using Graph API for that but it wasn't successfull.
I successfully logged into FB using the graph API and got the access_token to access FB.
The primary need for me is to get a Facebook page and get ALL the posts from that Facebook page. And also to post on the wall of that Page.
Plaese help me with that.
Thanking you in advance :)
Have you tried using FBConnect library? https://github.com/facebook/facebook-ios-sdk
I think it will solve all your problems
You should take a look at the facebook permissions. Your user must allow you to access this information (you can do this with the FB SDK). You can get info on the exact error from the server response. It looks like you want the read_stream and publish_stream permissions.