Retrieve Friends email using Graph API android [duplicate] - android

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Facebook Graph API and friend's email
I know it is not possible to retrieve friends email addresses but is there any alternative to do it? What i have found out is that a URL like: www.facebook.com/username/info is able to retrieve an HTML page which may or may not contain email addresses. Can we parse through html and then get the data like this?

Scraping isn't really related to Graph API, and while you can do it, this is something no one would recommend (and easily may turn into Platform Policy violation).
BTW, Currently in the source of page there is email address of user in url encoded form in an html comment block. (every DOM parser is automatically out of scope), and no one can ensure it will be there. Since changes on Facebook platform are way frequent, this will probably change soon and you'll be in a constant nightmare of figuring what changed and fixing parser...
Actually for communication with your friends via application you should use social channels defined by Facebook. You may also be interested in Chat API if you want to send messages to friends.

Related

Android facebook SDK 4.x getting user email without JSON

I want to ask how could I get user's which is logged into app email as string value? I have only seen tutorials how to get it using json and then send it to web service which I don't need. Maybe someone could show me the simple way of getting user email?
The Graph API always returns JSON. So, no, I don't think that this is possible. The Android SDK provides convenience classes, so I don't really see a big effort using those. You can use JSONObject.get("email") to retrieve to value of the email property I guess.
See
https://developers.facebook.com/docs/android/graph#userdata
http://developer.android.com/reference/org/json/JSONObject.html#get(java.lang.String)

Challenging other players using Facebook API with the same data

I'm in course of developing an application, which basically is a quiz. I store all the questions on an external server, and fetch them as JSON files. I'd like to implement some Facebook features, most importantly the possibility of challenging other players. However, in order to compare the results, I'd like that other user to use the same set of questions in a current game, as I do - situation similar as in SongPop, where two players guess the same songs. I'm not sure though if it's possible for a standard Android app, not Facebook app like SongPop. I'm looking for a way of somehow sending a 'data pack' to him, containing the questions I have for the current challenge.
Create a Question Set which is a collection of Questions.
e.g. QuestionSet1 will contain Question2, Question4, Question5.
You can just send QuestionSet1 to the user being challenged. e.g. mysite.com/game/?questionsetid=1
On your server, if the url contains the parameter 'questionsetid', that meets you'll get the questions from the Question Set.

Mobile app backend [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 8 years ago.
Improve this question
I am a web developer but recently I have been asked to build a backend of a mobile app.So basically there is a single form inside the app and the user fillup the form and hit submit and the data will be sent to a secured server.The app will be made by someone and I just need to get the data from the app and store it in a db.
Now I have few questions like:
Do I need to register with apple developer account or some other account like android?
Is there any guide or tutorial how to get the data from the app and process it.
Also once the app is made by the developer how can it be downloaded?
You might check out Parse: http://parse.com. Could save you some work?
Take your favorite server-side programming language. (eg. php, ruby....)
You can create a url where the app can make post requests.
Tell the app developer that he should send the data in json within the post requests.
He can send the form data after someone has filled it. Let him add an unique id to every form data, to make sure that you do not save duplicated data.
When you got the json parse it and push to the DB.
Optional:
Implement authentication
Implement encryption
You do not need to have a developer account for that (creating a web service), but respectively the app developer.
First thing i want to clear that there is nothing about back end process for web developer. That all thing should have to manage by Mobile Developer.Web Developer just have to get Request and perform action & return Response base on request.
Doesn't matter that process is running in background or four ground just manage response time. Mean if User didn't get response in such specific time then try to mange that and return appropriate response to user.
If you don't know how make web service then www.w3school.com and some other link or example also that will help you.
Start with basic concept and then switch to next step.
Good Example about Android + PHP : Web service
Good Luck !!

Android: working with the Twitter search api

I'm working on an Android app that works intensively with the Twitter search api, retrieving twitts that contain certain keywords, and then tokenizing other words in them. My question is the following: form an architectural point of view, is it better to do all the work inside the app or to retrieve the information from a webservice? (I was considering this last option at f
first, but I'm afraid that even caching the results wouldn't be enough to bypass the limit rates of the Twitter api).

Allow Android SDK to search through website?

Let's say there's website X. Website X has a search function that'll return articles/documents/whatever. Whatever it returns will include a link so the user could click on it to go to said article. All of this would be without an API. Would it be possible for an android application to query a search on a random website, get the results and display them in the app, without the user actually seeing the website?
Yes, of course. All you want to do is write the app such that it performs the query to the website on behalf of the user; that way it gets the HTML response. When it gets the HTML page as a response, you parse that and reformat it into something more appropriate for the app.
Look at this SO question if you want more information on HTML parsers in Java: Parse HTML in Android

Categories

Resources