Skip to content
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

Error connecting to graph.facebook #37

Closed
fotios2010 opened this issue Sep 8, 2010 · 5 comments
Closed

Error connecting to graph.facebook #37

fotios2010 opened this issue Sep 8, 2010 · 5 comments

Comments

@fotios2010
Copy link

Hi there,

I haven't thoroughly delved into the code yet, but looks like whenever I run both the examples, I get the same json object-error from facebook: "error": {
"type": "OAuthInvalidClientException",
"message": "Missing client_id parameter."
}

Somehow, the login params are not passed in the main URL (https://graph.facebook.com/oauth/authorize). Is there a quick fix to alleviate the problem? I checked out the latest code from your git repo, but has this bug... I also used the kAppId of a sample facebook app that I created a week ago, but like I said, the params in FBLoginDialog::initWithURL are not passed in the URL. I'll continue debugging your library, but I was wondering if you have a quick fix.

Also, the UnitTesting code breaks, because it doesn't find the main application's window at launch-time (it's null).

Thanks so much!
Fotios

@yujuan
Copy link

yujuan commented Sep 8, 2010

See the Readme file in the main page, you need to write your app_id in the code.
For demoApp it is in the file DemoAppViewController.m
Troubleshooting

: I get a ''missing client_id'' error. ; Read the setup instructions and make sure your application ID is set.

@fotios2010
Copy link
Author

Yes, you are right about the app_id.
But just like I pointed out, I have given the app_id the correct value from my facebook app. It is in the key-value pair in the params mutable dictionary, in l.115 in the DemoAppViewController.m. When I debug your test code, I see this value. So, this is not the issue in this case...

@yujuan
Copy link

yujuan commented Sep 8, 2010

Just checkout a copy, and fill in the appid in DemoAppViewController.m line 23. Did not see the issue you mentioned.
Can you do a diff against the depot what might be changed?

@fotios2010
Copy link
Author

Sure. I just checked out the code today. After running a git diff HEAD, I dont find any changes, except from my static kAppId NSString, and the fact that I'm using SImulator 3.2 instead of 4.0. Anyhow, it doesn;t seem obvious to me what is going wrong. Can it be the callback URL for my facebook app? It is just very weird.

@fotios2010
Copy link
Author

Yujuan, Thanks so much for your quick replies! I had to delete and get the code via git again. It now seems to connect fine! Thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants