New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not convert string to integer: public_profile. Path 'data[0].permission' #293
Comments
What Facebook app are you using? This seems to be an issue with whatever object you are trying to serialize to, not an issue with the SDK itself. |
@rvparekh which version of the sdk are you using. we don't use |
I am using the facebook version 6.0.10.0 which comes with asp.net mvc facebook app template. |
I have created app for facebook and page tab app for the application. |
this error comes with the new app created in the developers.facebook.com. |
Looking. At F8, Facebook did make announcements that they are changing the way the login dialogs work i.e. more granular permissions check. This impacts new apps only, so we will have to validate with a new app. |
We are getting the same error. Anyone knows how to help? |
@franciellecastilhos1 Is this happening during Login or during a different Open Graph request? What platform are you using it for? |
I have same error. |
@sanjeevdwivedi this happens when authorizing the app to get user's data, the window to ask for the permissions doesn't open, the error happens when it tries accessing the method FacebookAuthorize("email", "...")] as @mcorrearodrigues said. If we change to FacebookAuthorize() it works, but then I won't be able to set the user's permissions that I need. |
Hi everyone, I think this is an important info: "We will review how apps use Facebook Login: Apps requesting more than public_profile, email and the user_friends permission must be reviewed by Facebook before those permissions can be requested from people. Existing apps have one year before they are required to go through login review, including updates to existing apps. Facebook apps created after April 30th, 2014 will have to go through review." |
Looking. |
I tried this with the Facebook SDK version 6.4.2, the last version released about 6 months back and everything seems to be working fine. @rvparekh We cannot support the 6.0.x version as that is almost 2 years old and a lot of things have changed. @franciellecastilhos1 The FacebookAuthorize attribute is not present in the latest version, so I am assuming that you are using a previous version of the SDK. Please upgrade to the latest version and reopen the bug if you still the same issue. Closing this bug since this is based off a really old version of the SDK. |
Hi, @sanjeevdwivedi Can you send for us your solution ? [code]
[/code] |
@mcorrearodrigues Can you upload a sample project that I can open in Visual Studio directly. Remove your AppID and AppSecret and I will look at what is going on. |
@rvparekh @franciellecastilhos1 If either of you can upload a sample project somewhere that will be helpful. I did not realize that Microsoft.AspNet.Mvc.Facebook has taken a dependency on the project and the code is breaking via that path. |
Thanks @sanjeevdwivedi |
Thanks. Looking. |
Thanks @sanjeevdwivedi My Settings is: 1 - Add Platform - Choose App on Facebook |
Hello @sanjeevdwivedi My settings are: I have used default asp.mvc facebook application template for creating facebook app. Repo url:https://github.com/rvparekh/fbdemo |
Hi @sanjeevdwivedi, I am also facing the same issue. It's happening with pretty basic setup. Here are the reproduction steps:
Now, once you have granted the basic permission on facebook.com, we can see the following error message from newtonsoft json assembly. Exception Details: Newtonsoft.Json.JsonReaderException: Could not convert string to integer: public_profile. Path 'data[0].permission', line 1, position 39. I have also found two partial solution to the issue:
|
This issue is actually coming from the ASP.NET template. We should file a On Sat, May 10, 2014 at 10:23 AM, ieatanu notifications@github.com wrote:
|
Then how we take permissions from users ? |
Use the new Microsoft.AspNet.Facebook package |
@drinkbird I installed latest version of Facebook SDK(6.6.0) and Microsoft.Aspnet.Mvc.Facebook (5.1.2) . Bu sttil getting same error. Did anyone find a solution for this. I am using VS 2012 |
@abdullahaslan Do not use the 'Microsoft.AspNet.Mvc.Facebook' library. It has been discontinued! Use the new 'Microsoft.AspNet.Facebook' package (Without the .mvc. part in the name). |
Thanks @drinkbird . Downloaded new one via "Install-Package Microsoft.AspNet.Facebook" (1.0.0) |
@abdullahaslan You can find the official code from microsoft at 2014-07-11 9:31 GMT+03:00 abdullahaslan notifications@github.com:
Anastasios Piotopoulos LinkedIn: https://www.linkedin.com/in/piotopoulos |
The problem is solved. Thanks @drinkbird |
Yep, I second that .... thanks @drinkbird I was able to get my Facebook app working! |
@drinkbird and @isaacrael Now trying to get user friend list but always return empty. Application can get user photos, email ,name. Is there anything missing. Permission : |
@abdullahaslan since graph api v2, the system return only the friends that 2014-07-14 9:59 GMT+03:00 abdullahaslan notifications@github.com:
Anastasios Piotopoulos LinkedIn: https://www.linkedin.com/in/piotopoulos |
@ieatanu you are terrific |
@drinkbird Thank you!! |
This Issue comes after update in the facebook api from 30th April 2014 they have removed some of default permissions and rename the "basic_info" to "public_profile"
can you please look in to this and do as need full.
this issue is only occurs when we create new facebook app and then run it.
the old facebook app works fine.
Could not convert string to integer: public_profile. Path 'data[0].permission', line 1, position 39.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Newtonsoft.Json.JsonReaderException: Could not convert string to integer: public_profile. Path 'data[0].permission', line 1, position 39.
The text was updated successfully, but these errors were encountered: