I am developing a Android chat app with facebook login and I want to get the user's all faccebook friends, either they are using this app or not. But the returned list is only contain the friends who are using the app. SO would any one like to give me a direction that how can I access the all user's friends. I also searched for the desired result but all my efforts proved futile. Any help would be highly appreciated. Thanks
according to new sdk facebook returns the person's friends who also use the app.
If you want to access a list of non-app-using friends, there are two options:
If you want to let your people tag their friends in stories that they publish to Facebook using your App, you can use the /me/taggable_friends API. Use of this endpoint requires review by Facebook and should only be used for the case where you're rendering a list of friends in order to let the user tag them in a post.
If your App is a Game AND your Game supports Facebook Canvas, you can use the /me/invitable_friends endpoint in order to render a custom invite dialog, then pass the tokens returned by this API to the standard Requests Dialog.
Related
I am just going for development of an android application on google map, but what error i am getting after some day of lunching the app in Playstore the google map is not working, only one page is coming and at right end of the page google icon is present.
Is there any way to fix this problem or we have to bye google api? Thank you.
You can solve this problem by going to you api console
from this link then choose credentials
then choose your key and check the choose like next image
some api need billing accounts, Make sure that your protect is attached with billing account or not , if it is attached than you should contact with google custom support center
Actually i wanted to make a clone of instagram and show user feed in another way and change the language of app for my own country , but there are several problems with standard instagram api
1.you cannot have user feed
2.you should become live to have user data
i guess some of apps use another api which is based on web version and i think this api fetch data from instagram webVersion or maybe official app,
i searched for a private api and i didn't found something suitable for my Task
i hope you guys could help me to find another instagram api for my job
it's better to be based on java or android
Thanks
I am wondering about this technique, which I can display my site's posts and Facebook wall's posts together in my application, like an application I saw that displays a site's wall posts and Facebook page posts as a Cardview.
Here is a Screenshot of the app that displays the site's posts:
Here is another screenshot of displaying their Facebook page's wall posts:
I would like to know how to do this technique.
What is the name of the function and object?
You should use facebook API. Facebook Api such as Graph.
For that
1.Sign in as a developer.facebook.com and it will provide api key which you should add in your application dependency.
The Graph API is the primary way to get data in and out of Facebook's platform. you should make use of the sdk
Make use of graph api reference in its documentation page.
For more specific as android application facebook provide graph api for android.
For the website you should create your own api. There are many ways and languages to accompolish this but i prefer rails 5 api feature to do this.
Create rails 5 as a backend
You the json data which is generated by the rails application to mobile app.
Hope this make sense!!
I have developed an Android game that integrates facebook SDK for checking if one has liked and sharing results.
I heard from my mate that he had problem that made him unable to use the like for reward feature on my app, so I decided to install facebook app myself to check out the problem.
For some reason if I am trying to access the fb api reading data from URL "https://api.facebook.com/method/pages.isFan?format=json&access_token=ACCESS_TOKEN&page_id=PAGE_ID" it opens up facebook app on Android which only flashes and then turns off.. How can I avoid this or is there better way to check if one has liked my page in order to give him reward?
I haven't used the Facebook API, but the Facebook app is probably opening because it's listening for broadcast Intents to "api.facebook.com". You could explicitly send the intent to a browser package instead, but this isn't a good solution as there are many browsers.
I would try to do a HTTPS request using a Loader to fetch and parse the json. Have you tried this yet?
I can't paste any code right now, sorry.
From your comment to above Answer , Glad to know that you solved your problem,
Here is the answer for your Question
is there better way to check if one has liked my page
You can surely use FQL - Facebook Query Language to do this, given under the developer documentation in Facebook site.
There are Two different table
1.Page - where you can get all the detail about the page
2.Page_Fan - which you can use to know the fan-id for the page
I need a Facebook application that kind of sit in the 'background' of user operations. Once the app is installed by the user, it will keep on sending the user's status updates, new friend connections etc to another web app of mine. It will keep on getting info no matter whether the app page is open or not.
My question is -- is this possible? So far, I've played around a simple iFrame app written with the Java API. It seems that it can only perform data collections whenever the page is hit.
EDIT: Privacy is definitely a valid concern here. But the application will definitely prompt for permission even if FB API is not built in to do so.
You can ask the user for the offline_access extended permission by using the fb:prompt-permission FBML tag: <fb:prompt-permission perms="offline_access">Can I have access to your data all the time?</fb:prompt-permission>, store the user's session key in your database and then query the Facebook API as needed. (You may need other extended permissions if there's other data you want to access that isn't a standard API call.)
Note that this isn't against the terms of service, but you won't be allowed to store any of the data you receive for more than 24 hours.
Tho I wont suggest it, but if you create an "app" which has an associated user account, which you then ask the user of the facebook app to add as a friend, then you can achieve what you want in the question.
e.g., lets say your app was iFacebook - then you create a regular user account called iFacebook Friend, and ask users of your iFacebook app to add iFacebook Friend to their friends(*) list. Then you can scrape data off your app users via the regular facebook account 'iFacebook Friend'.
However, doing so is probably going to violate some usage policies of facebook, and can likely to get you banned, or reported as a privacy violating app. However, if what your app does is useful enough, some people will happily let privacy go...
(*) you can entice them into doing this by giving incentives, such as bonus points, extra exclusive 'stuff' that only those who have added the friend would get.
Nope. Facebook doesn't want apps having too much user data in general, and certainly doesn't want them accessing it when the user is not actively interacting with the application.
Heck, infinite session keys aren't even supported anymore. Those still around have all been grandfathered in.