如何使用PhoneGap的获取朋友的生日列表从脸书API [英] How to get Friend's Birthdate List From Face Book API using phonegap

查看:259
本文介绍了如何使用PhoneGap的获取朋友的生日列表从脸书API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的PhoneGap Facebook的连接从插件
GitHub上
这是一个不错guideline.i遵循这一点,我能够当我通过facebook.and登录我使用此获取好友名单HTML code.every的事情会发生细微我的查询是我需要now.i获取朋友的生日列表已经试过很多东西,但没能得到,BCS我真的不明白的Facebook插件的PhoneGap很好是.so任何一个可以引导一些步骤,我如何能得到的生日列表吗?我已经给的友情生日<许可href=\"https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Ffriends%3Ffields%3Dname%2Cbirthday\"相对=nofollow>这里和u可以看到我传递这个 FB.api('/ ME /朋友',{字段:ID,姓名,照片,生日'}, 在我的HTML file..i我没有得到任何结果在设备或仿真器,我得到这个警报在这里输入的形象描述,当我删除生日从这里 FB.api('/ ME /朋友',{字段: 'ID,姓名,照片,生日'} 比它为我的朋友的用黑色imges的列表,请帮我

i am using phonegap-facebook connect plugin from GITHUB it's a nice guideline.i have followed that and i am able to fetch friend name list when i login via facebook.and i am using this html code.every thing goes fine my query is i need to fetch friend's birthdate list now.i have tried lots of things but not able to get that,bcs i really not have understood facebook phonegap plugin very well.so any one can guide some steps how can i get birthdate list?,i have given permission of firend birthday here and u can see i am passing this FB.api('/me/friends', { fields: 'id, name, picture,birthday' }, in my html file..i am not getting any result in device or emulator,i am getting this alert ,when i remove ,birthday from here FB.api('/me/friends', { fields: 'id, name, picture,birthday' }, than it shows me list of friend's with black imges please help me

感谢

推荐答案

每一件事情去很好我只是缺少把接取令牌在我的preference:((

Every Thing Goes Fine i was just missing to put acess token in my preference:(:(

有关一个谁希望有一个指南,如何充分利用来自Facebook好友的生日列表pohnegap ...

For one who want to have a guide that how to take birthdate list of friends from facebook using pohnegap...

第一步:

请按照我的问题。<一个href=\"http://stackoverflow.com/questions/11698642/an-error-occur-please-try-again-laterphonegap-facebook-plugin-android\">HERE别忘了看我编辑的部分还....如果u按照ü将能够通过Facebook登录,&安培;也将能够获得好友列表....

Follow my question.HERE do not forget to see my edited portion also....if u follow that u will be able to login via facebook,& also will be able to get friend list....

第二步:以及按照步骤1ü将能够获得好友列表,我们不需要从Facebook得到任何许可,但对获取朋友的生日列表中,我们需要一些权限...所以接下来我的问题<一href=\"http://stackoverflow.com/questions/11754554/how-to-get-friends-birthdate-list-from-face-book-api-using-phonegap\">HERE意味着只有这个问题......

step2 well by following step1 u will be able to get friend list for which we don't need to get any permission from facebook,but for fetching friends birthdate list we need some permission...so for that follow my questionHERE means this question only......

遵循每第一步和放大器的每一个步骤;第二步仔细,
这样做后,üR ON旅途中只需打开一个JavaClass ConnectPlugin.java,只是把UR接取令牌在此行

follow each and every steps of step1 & step2 carefully, after doing this u r on the go just open javaclass ConnectPlugin.java and just put ur acess token at this line

prefs.edit().putString("access_token","UR ACESS TOKEN GOES HERE").commit();

这就是它运行您的程序.... :) :)
谢谢
阿米尔

and that's it run your program....:):) Thanks Aamir

这篇关于如何使用PhoneGap的获取朋友的生日列表从脸书API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆