Which API is used by the official Facebook for Android application? - android

I currently use the Graph API and it seems like it has many bugs.
Example (Missing Posts):
Query "home" using the Graph API Explorer (with all permissions granted).
Look at the posts shown in Facebook website or the Facebook Android application (both set to show recent posts first).
Compare the result and you will probably see some posts missing (it can be missing videos, photos or just simple text statuses).
I recently published a question regarding another problem (Graph API returns some hidden posts). So it returns posts that it shouldn't and ignores posts that it should.
Obviously there is a way to get all items correctly but I've researched this issue for a long time and it seems like the Graph API is simply not the solution.
I'm wondering if anyone else have seen these kind of issues using the Graph API and if switching to FQL helped. Knowing which API is used by Facebook's official application will hopefully put an end to the pure Graph API vs FQL question.
EDIT: Answering my original question - The Facebook for Android application is using FQL. Yet I would like to know if it's possible to show a correct 1-1 reflection of the stream/wall using just the Graph API.

The official Facebook apps use undocumented and generally unavailable api's. From monitoring and decrypting the network traffic, it's mostly fql calls, however they have access to data and methods that arent available to third party developers. So you will often find discrepancies such as this when using the feed. However, I usually find that fql and graph return the same result, but a different feed than Facebook.com and their mobile apps.

Related

How should I design the backend for my twitter app on android? - Could use some info

Some may feel that this is a general question, but I don't believe that. I believe that this is a very important aspect of development and I am trying to learn from others.
Let's say I am making a clone of the twitter app.
Now, the front end is very do-able through traditional android code, however I don't know how to design the backend of the app.
I could use a database - but that seems better suited for older more traditional in house software applications.
I read a little about google app Engine, but I am not sure if that is a solution that should really be used for something like this. Realistically I do not know what options I have and I could use some direction for my research - because I don't want to make a mistake in my architecture only to have to go back and redesign the backend.
I would like to know what types of things I should be researching so that I can evaluate my options appropriately.
Thanks
In this case, you are looking at accessing the Twitter APIs to meet your functionality. You should look at an approach like the following:
Do you want to clone the Twitter App as is ? or certain functionality of it ? Identify that stuff.
Research the Twitter API in detail. For all your Twitter app needs, the requirement could be met directly by your API. Any local functionality for composing, replying, offline, etc can be met by your Android client itself and you do not necessarily need any backend functionality.
If you are looking at providing more value added services (some examples are below) :
Analyze the Tweets to provide enhanced information
Combine Twitter Data with information from other data sources
Provide metrics for all users of your Twitter App
Set User Preferences such that you can sync these preferences to multiple devices if the user logs in from anywhere
In such scenarios, doing work on the Server side will make things easier. Google App Engine is a great backend with which you can achieve a lot of the above functionality. It provides you a PaaS where you can use various services (datastore, networking, email) to boost your productivity, along with choices of languages (Java, Python, PHP and Go).

WordPress Api + Android

I have a blog which is written in WordPress but not hosted on Wordpress.com, and I would like to develop an Android app to interact with this blog via the Wordpress REST Api. I searched in the Wordpress developper documentation and it seems that you can interact with this API only through Wordpress.com.
I have also made some Google searches and I found that many plugins provide this functionality but I don't know which one to use.
My Android app will interact with this blog. It will get all the blog posts, comment, post comments. If the user is an admin, he can create new posts. Note that I could simply create an RSS feed and everything would be alright but I want to take advantage of the Wordpress API.
What are the best solutions to achieve this?
One Doubt, if its API Means you can Use JSON or XML for Android
First Check for JSON
Check This
other wise use that API and Create a Custom RestFul web services which Reads Data form that API,.. Automatically.
Better to Use API for Fast Results..
Is there a reason to develop this app yourself? Because if there's none, you should check the official app by Wordpress in the Google Play. I use it for some self hosted blogs and it's very helpful.
As I understand - to get required functions you need WordPress REST API (Version 2) and one of plugins for authentication: Basic-Auth of OAuth1 WP-API on GitHub
For more details please see official documentation on v2.wp-api.org

How can I display a twitter feed In Android programmatically?

How can I display a twitter feed In Android programmatically?
Please be more specific of what you want to do (maybe what your motivation is), what you know/tried already and where exactly you are stuck. It makes answering your questions easier.
Having said that, I see two main aspects of what your app should do:
Fetch the tweets for a given feed
Displaying them
I guess how building Android apps and user interfaces works is something you already know to some extend (if not this is a separate question).
So what is missing is a way to communicate with the twitter server and retrieve the tweets. For tasks like that (not only twitter) there are usually APIs defined and you can find libraries to do most of the hard work for you.
In this case a web search for "twitter api android" leads you to twitter's list of available Twitter libraries, sorted by language. Android programming is usually done in Java. In the list you find three Java libraries to choose from, with one explicitly mentioned as Android compatible: twitter4j (under Apache license).
Have fun playing around with that one. The section "code examples" might be worth a look as well.
Edit: Twitter API ME is also android compatible (and GPL / LGPL licensed). And there is TwAPIme, an app demonstrating its features, with source code available (for download link and license see end of description in Google Play).

Source codes for apps built on Foursquare apis

I've been planning to build an Android application built on Foursquare APIs. I went to the foursquare developer site and tried out the android oauth example. Also I noticed in the showcase several fancy apps such as Instgram, LocalMind. I wonder where (websites like github) I can find their source codes so that I can have a taste of how to develop a real foursquare app.
I am not sure there is a direct answer to your question.. With the exception of code snippets found by google code search or regular google search, do not expect to find full source code for integration with APIs..
As far as oauth goes, there are many examples with a simple google search on how to make it work (note that you have the Venues API that does not requires the oauth process)
As far as source code goes, you should check out this page it should have links to many examples. (got here after two clicks from that page..)
From my experience, we are developing a foursquare-enabled app with a custom server software - in short, our Android app will access our server, which will access foursquare (if required) and get data and pass it to our client (Android/iPhone/whatever).
Bottom line - eventually, you really should learn the API yourself, know the different endpoints and the returned data structures, experiment with different search results and then, if you wonder on what is the right way to get specific data or if you think you are doing something right and getting the wrong data, this is probably the place to ask about it.
The API Explorer should help a lot in doing that.

Is there A Way To Use Google Image Search API From Android?

Is there a way to use Google Image Search API from Android application?
Official page (http://code.google.com/apis/imagesearch/) talks about using the API from a website. I'd like to use it from android application. I'd like to get URL of a first image for the specified keyword which will user enter in my applicaton. Thanks!
Update:
this api is no longer valid and has been replaced with a custom search engine that is probably not what you are looking for
I can't see any reason you can't use the normal REST/JSON interface Google has documented (intended for Flash webapps but seems legal to use for other non-Javascript purposes too).
According to Google:
The Google Image Search JSON interface, and this guide, are provided for Flash developers, and all other developers who need to access Image Search from other Non-JavaScript environments.
Seems like Android would qualify, assuming you meet all the other TOS requirements like attribution, user-generated queries, and so on.

Categories

Resources