应用凭证不存在 [英] app credentials doesn't comes

查看:67
本文介绍了应用凭证不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我有一个网站..我输入了一个Facebook登录名,并使用 http获取了Facebook用户凭据://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid = 371917 [

hi...
I have a website.. in that I put a facebook login and I get facebook user credentials by using http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=371917[^] giving code. When I using this code only app created user email,DOB values getting but other persons values doesn''t comes. How can I solve this type of problem.. please help me....

thank you....

推荐答案

基于您问过的相同问题
Based upon the same question you asked here[^], I see that the error you are getting is "Object reference not set to an instance of an object". This error occurs when you do not properly instantiate a class object. For instance, if you have a class Foo and you want to assign it to a variable bar, this would not work:
Foo bar;
bar.Run();


而是,您将看到相同的错误(只要存在此类).相反,您需要像这样实例化变量:


Instead, you would see this same error (as long as this class exists). Instead, you need to instantiate the variable like this:

Foo bar = new Foo();
bar.Run();


在代码中的某个位置,您正在使用类引用,而没有先实例化它.如果您确定它抓住了哪个变量,您将找到答案.

我的建议是从您引用的文章中获取代码,并尝试使该示例正常运行.一旦工作,请尝试重新创建它(不是新的东西-相同的东西).一旦可行,请尝试在您的应用程序中实现此代码.一路上,您将看到您偏离了作者的位置.

更新
对于实际的Facebook数据,我认为您反对扩展Facebook权限的需求.在没有扩展权限的情况下,Facebook不允许您访问通过API在屏幕上看到的所有数据.您将需要注册您的应用程序,并要求人们访问他们的数据.这是更多信息的链接:

http://developers.facebook.com/docs/authentication/permissions/ [


Somewhere in your code, you are using a class reference without first instantiating it. If you identify which variable it is griping about, you will find your answer.

My recommendation would be to take the code from the article you referenced and try to get the demo working. Once it is working, then try to recreate it (not something new - the same thing). Once that works, try implementing this code in your application. Along the way, you are going to see where you deviated from what the author did.

Update
For the actual Facebook data, I believe you are bumping against the need for extended Facebook permissions. Facebook doesn''t give you access to all the data you can see on the screen via API without extended permissions. You will need to register your application and ask people for access to their data. Here is a link with more information:

http://developers.facebook.com/docs/authentication/permissions/[^]


看看FaceBook API(身份验证 [
Take a look at the FaceBook API(Authentication[^]) documentation. It''s been clear described the things need to be used in order to integrate the FaceBook API to your website. However you may not get all the information that the user has in FaceBook account.
Facebook开发人员文档说
Facebook Developers document says


默认情况下,我们允许您访问用户的名称,图片以及他们与Facebook上的每个人共享的任何其他数据(有关更多详细信息,请参见用户图"对象)...


By default, we give you access to the user''s name, picture and any other data they have shared with everyone on Facebook (see the User Graph object for more details)...


这篇关于应用凭证不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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