Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
http://www.asp.net/mvc/tutorials/mvc-4/aspnet-mvc-facebook-birthday-app[^]

i am try to develop this app as demo but getting error not getting where it coming from

HTML
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.
Posted
Comments
[no name] 5-May-14 8:17am    
What do you mean "not getting where it coming from"? The error message is telling you!
Member-515487 5-May-14 8:20am    
what should i do try to find out in all cs and controller
Nimit Joshi 6-May-14 0:15am    
http://www.c-sharpcorner.com/UploadFile/cd7c2e/creating-a-birthday-app-on-facebook-by-using-Asp-Net-mvc/

try out this..
eugen.pavlenko 6-May-14 14:15pm    
On HomeControler try change [FacebookAuthorize("email", "user_photos")] to [FacebookAuthorize()]
But you code can't access to email, user_photos and etc.
Member-515487 7-May-14 6:04am    
but if i want user_photos email how can i get is their any permission have to set

 
Share this answer
 
Comments
eugen.pavlenko 13-May-14 16:34pm    
Actually, problem in this case in changed Facebook API.
About change you can read on FB Dev Center https://developers.facebook.com/docs/apps/changelog
1. Replace library Microsoft.AspNet.Mvc.Facebook with Microsoft.AspNet.Facebook
2. (Ctrl + Shift + H) replace "Microsoft.AspNet.Mvc.Facebook" with "Microsoft.AspNet.Facebook" in entire solution

http://bloglaptrinh.tk/kien-thuc-chung/facebook-app-viet-ung-dung-facebook-canvas-bang-mvc/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900