Closed (fixed)
Project:
Socialmedia Importer
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jul 2013 at 11:40 UTC
Updated:
25 Jul 2013 at 12:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
afi_amouzou commentedHallo bennos,
did you have your Domain in the "Apps Domains" Settings in your Facebook App?
See the Screenshot.
Comment #2
bennos commentedhm,
When I add an domain in the field, I must select something below, but what?
Got it working with twitter.
Added my domain in the facebook app and checked "Website with Facebook Login" and added my root url.
But the error is the same.
hmmm
Comment #3
bennos commenteddid not get it, but I am close.
Your url "authenticate" in the UI is not right.
Replacing the "
&" with "&" . Facebook does not handle it.https://www.facebook.com/dialog/oauth?client_id=355429237893095&state=74d4a09c40130e5d5b4936132754c2d0&redirect_uri=http%3A%2F%2Falpha.domain.com%2Fsocialmedia_importer%2Fresponse_handler&scope=user_birthday%2Cread_streamWhe I write the "&" the url manually, then facebook accept the url, but it does not authenticate it
Next error:
The Application can not be authenticated. Check your application Settings
looks like an Oauth problem here.
Comment #4
afi_amouzou commentedI replace the
"&"with "&". http_build_query($array); gives"&"to some servers.The change is in the beta3 release. Do an Update to see if your problem is solved.
Best Regards.
Comment #5
bennos commentedHey
thx for the fix.
The redirect works now, but can still not get an authentification with facebook.
Error message: The Application can not be authenticated. Check your application Settings.
I get to the facebook site an authenticate. After that I get back to drupal and get the error message above.
Looks like the Oauth token get not to drupal and the oauth module.
I looked in the DB tables and nothing there.
Hosting is Aegir on Nginx (BOA https://drupal.org/project/barracuda).
Twitter Auth works fine. Just Facebook that makes trouble.
So the Aegir and Nginx does not block something (header oder access).
You help would be great to socialmedia_importer up an running with facebook.
thx
bennos
Comment #6
afi_amouzou commentedHi,
It is possible that you don' t get a code from Facebook. To help with the debugging, follow this steps and upload the logfile content:
e.g.
Best Regards.
afi_amouzou
Comment #7
bennos commentedpatch applied.
file logger module installed.
cleared cache and registry.
tried to authenticate
here is the ouput form the file log
Looks like there comes the token from facebook.
Also looked at the database tables. no access token saved.
Comment #8
afi_amouzou commentedHi,
I need more debug infos to anderstand why you can not get access token with the code or why the access token is not saved. I provide a new patch with more log entry to get more infos. Post the logfile data and the Drupal Messages.
Thanks
Best Regards.
afi_amouzou
Comment #9
bennos commentedhey
applied patch to the beta3 version.
I tried to autenticate an fb-app that has been created before.
I added also a new app. Redirect on the screen to the FB page works, but see the log file entry's below.
Looks like the token can not get, because the url is encoded.
Comment #10
afi_amouzou commentedI Provide a new Patch to solve the possible encoding Problems in the code. Apply the new Patch.
If you still have errors, post the logs and the Facebook Application Settings.
Comment #11
bennos commentedlast patch works like a charm.
authentification of an added app works.
also added a new FB app and it works.
here is the file log.
I looked also in the database table and the token is saved.
thx for your work.
changing the status to rtbc,
Comment #12
afi_amouzou commentedFix will be in beta4 and dev Version.