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.
Related
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.
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/
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
Let's say that John sent a request to his friends so they come to your app in your page. John's friend, Paul, clicks on the invitation and comes to your page. When Paul enters the page, I have access to the request object where I can see that John sent the invitation. So far so good.
Now, let's say that Paul likes the page. Do I still have access to that request object so that I can tell that this action was possible thanks to John?
In the case that is not possible using the default like button. Is there an Open Graph method to like your page so that I can create my own button inside the app to make Paul like the page? This way I can send the request object along and I can make the relation myself.
Thanks
It's easier if you save the request object containing if the user came by invitation in a cookie and check that after the user has liked your page. Does that solve your problem?
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there a facebook friend selector widget or plugin that shows the UI for all the friends of the user, in which the user then selects one or more friends. After that facebook gives me list of ids of selected friends ?
fb:multi-friend-selector only works within the context of sending application request as for as I know, so this would not work for me because I do not want to send application request but just needs list of ids of selected friends. This plugin or widget must work from my website after user has logged in via facebook connect and not from within facebook canvas application.
Thanks.
What you are asking for does not exist as a plugin or widget provided by facebook. However, you can very easily build one yourself. Using the javascript SDK you can request the list of the users friends using the Graph API. After that just build the widget you are looking for with normal html and javascript. To make the request to get all a users friends do the following:
FB.api('/me/friends', function(response) {
// do something with the result
});