extract data from facebook [closed] - facebook

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/

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.

Get Facebook public profile information [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
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.

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 catch "like" number after user share from my application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a facebook application and allow user to share some data.
Therefore user will have a status that is shared by my application.
I wanna to catch this status "like" number.
Example,
user A ---> status A ---> 177 liked
user B ---> status A ---> 5 liked
PS.status A is shared by my application
Is it possible?
Thanks so much
yes it's possible. You just need the status ID. The query status_id/likes. It doesn't matter if it was posted through your app or not. I think you need the read_stream permission if it's not a fan page. Try here https://developers.facebook.com/tools/explorer/ the easiest test is retrieve your fan pages (me/accounts), then get the feeds of one of them, (page_id/feed). It should be possible to get the post_id/likes as well. The number of likes comes with the page feeds, in the json object. If you just need the likes, you can get the likes only with post_id/likes.

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.