shwetamandhare / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

How to get Facebook friends Birthdate #126

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I am currently using getContactListAsync to get friends list.
2. How should i get friends birthdate?
3.

What is the expected output? What do you see instead?
I should get getBirthDate() but I am not getting this option.

What version of the product are you using? On what operating system?
Product version 3.0 on Android 4.2.2

Please provide any additional information below.
This option is available for getting my birthdate from Facebook 

Original issue reported on code.google.com by basim.ma...@tkxel.com on 5 Nov 2013 at 6:15

GoogleCodeExporter commented 8 years ago
can you please provide with api link for friend birthday on facebook. i can 
then help you to implement it.

Original comment by vineet.a...@3pillarglobal.com on 5 Nov 2013 at 7:50

GoogleCodeExporter commented 8 years ago
I have used following Fql query to get friends list with uid,name,birthdate and 
picture:
SELECT uid, name, birthday_date, pic_square FROM user WHERE uid IN (SELECT uid2 
FROM friend WHERE uid1=me())

Original comment by basim.ma...@tkxel.com on 5 Nov 2013 at 8:04

GoogleCodeExporter commented 8 years ago
please check graph api call. 

Original comment by vineet.a...@3pillarglobal.com on 5 Nov 2013 at 8:06

GoogleCodeExporter commented 8 years ago
https://graph.facebook.com/me/friends?fields=id,name,birthday

Original comment by basim.ma...@tkxel.com on 5 Nov 2013 at 8:09

GoogleCodeExporter commented 8 years ago
I will revert you soon.

Original comment by vineet.a...@3pillarglobal.com on 5 Nov 2013 at 8:39

GoogleCodeExporter commented 8 years ago
Hi Basim,

i was not available these days.
You can use api method for custom calls.

Original comment by vineet.a...@3pillarglobal.com on 21 Nov 2013 at 9:36

GoogleCodeExporter commented 8 years ago

Please add permissions in property file .for DOB 

twittweAdapter.getContactListAsync(new ContactDataListenerForTwitter());

public class ContactDataListenerForTwitter implements
    SocialAuthListener<List<Contact>> {

        @Override
        public void onError(SocialAuthError arg0) {
            // TODO Auto-generated method stub
        }
        @Override
        public void onExecute(String provider, List<Contact> t) {
            // TODO Auto-generated method stub
            List<Contact> contactsList = t;
            Log.e("MyContacts", "" + contactsList);
            FRIENDSLIST=new ArrayList<HashMap<String,String>>();
            FRIENDSLIST.clear();

            for (int i = 0; i < contactsList.size(); i++) {
                Contact bean = contactsList.get(i);
                HashMap<String, String> map=new HashMap<String, String>();
                map.put("DisplayName", bean.getDisplayName());
                map.put("Id", bean.getId());
                map.put("profileImageURL", bean.getProfileImageURL());

                FRIENDSLIST.add(map);
            }
            pDialog.dismiss();

            GetFriendsListAdapter adapter =new GetFriendsListAdapter(Social_Friend_List.this, FRIENDSLIST);
            lv.setAdapter(adapter);

        }

    }

Original comment by guru2010j on 30 Nov 2013 at 2:42

GoogleCodeExporter commented 8 years ago
Hi,

As Guru said , you need to provide birthdate persmission in properties file and 
use teh custom call with api method.

Original comment by vineet.a...@3pillarglobal.com on 2 Dec 2013 at 9:22

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 5 Dec 2013 at 7:41

GoogleCodeExporter commented 8 years ago
Hi,
(Access Token)
I am using custom API 
call(https://graph.facebook.com/me/friends?fields=id,name,birthday&access_token=
value),i have set permission and all prerequisite as well.As for getting 
friends birthday list Access Token is mandatory,i have that as well by using 
the code snippets(adapter.getCurrentProvider().getAccessGrant().getKey()).
The problem is that, That still there is no birthday in the response,Its 
working fine in(Graph API Explorer).
Kindly for Once take my Request in your kind consideration(As i am posting 
since an year,but have not even a single reply).
thanks 

Original comment by engrsult...@gmail.com on 12 Dec 2013 at 6:17