- Home /
Failed first attempt when inviting friends using the Prime31 iOS Facebook Plugin
I'm trying to open an invite box using the Prime31 Social Networking plugin. The problem is the dialog will always fail to load first time. After the first fail, the dialog box will work from then on. Restart the app, and it fails first time again. I'm opening the dialog box using the following code.
var options = new Dictionary<string, string>();
options["message"] = message;
FacebookAccess.showDialog("apprequests", options);
When I try this, this is what I get in the error log
2012-05-14 17:47:30.790 heroescall[158:707] error description: Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.)" UserInfo=0xec7c890 {NSErrorFailingURLKey=https://m.facebook.com/dialog/apprequests?access_token=[TOKEN]&message=I%27ve%20answered%20the%20call%2C%20will%20you%3F%20Play%20Heroes%20Call%20for%20free%21&exclude_ids=&app_id=YYYY&api_key=YYYY&redirect_uri=fbconnect%3A%2F%2Fsuccess&sdk=2&display=touch, NSErrorFailingURLStringKey=https://m.facebook.com/dialog/apprequests?access_token=[TOKEN]&message=I%27ve%20answered%20the%20call%2C%20will%20you%3F%20Play%20Heroes%20Call%20for%20free%21&exclude_ids=&app_id=YYYY&api_key=YYYY&redirect_uri=fbconnect%3A%2F%2Fsuccess&sdk=2&display=touch}
2012-05-14 17:47:30.793 heroescall[158:707] error userInfo: {
NSErrorFailingURLKey = "https://m.facebook.com/dialog/apprequests?access_token=[TOKEN]&message=I%27ve%20answered%20the%20call%2C%20will%20you%3F%20Play%20Heroes%20Call%20for%20free%21&exclude_ids=&app_id=YYYY&api_key=YYYY&redirect_uri=fbconnect%3A%2F%2Fsuccess&sdk=2&display=touch";
NSErrorFailingURLStringKey = "https://m.facebook.com/dialog/apprequests?access_token=[TOKEN]&message=I%27ve%20answered%20the%20call%2C%20will%20you%3F%20Play%20Heroes%20Call%20for%20free%21&exclude_ids=&app_id=YYYY&api_key=YYYY&redirect_uri=fbconnect%3A%2F%2Fsuccess&sdk=2&display=touch";
}
14/05/12 05:47:30.860 (4.029738s) - Facebook Dialog failed - The operation couldn’t be completed. (NSURLErrorDomain error -999.)
Any suggestions? It looks like it's something happening underneath Prime31, in the FB library, but I'm not sure exactly what.
NB any SocialNetworking experts
http://answers.unity3d.com/questions/435671/facebook-like-using-prime31-250-reward-.html
Answer by Justin Warner · May 15, 2012 at 12:17 AM
First attempt Ahem try more. But maybe you can email the developers and see what they have to say about it?
But I can see right now, you're using [TOKEN] in those URL's which shouldn't be I don't think. If their is any documentation on the plugin, read it and follow it, because that token spot should be filled with something of yours I think.
Also, this might help, it's brought up, don't know if ever solved, but could be of use.
Good luck =).
I'm using [TO$$anonymous$$EN] because I removed it from the error logs. And by first attempt, I mean first time the app attempts it, every load. After that, it's fine.
Your answer
Follow this Question
Related Questions
Prime31 Facebook login failing if logged into facebook through settings 1 Answer
Parsing apprequests 0 Answers
Prime31: Posting To Facebook 0 Answers
Facebook "Like", Prime31 (ACTUAL $400 PayPal REWARD) 3 Answers
Parsing Facebook graph JSON 1 Answer