Active
Project:
Drupal for Facebook
Version:
6.x-3.0-rc11
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 19:31 UTC
Updated:
22 Apr 2011 at 17:38 UTC
I have been getting this message below. I use ubercart SSL module. How do I edit my connect url to fix this? Thank you.
The Facebook Application labeled MyfbApp has a suspicious connect_url. The value is https://www.example.com/, while something starting with http://www.example.com was expected. Consider editing MyfbApp.
Comments
Comment #1
thoughtcannon commentedSame thing with D7. I get the same thing repeated several times.
I've tried re-syncing from the FB module. I've tried manually setting and resetting the url with both www and non-www options on both my Facebook app and the FB module.
Thx.
Comment #2
Dave Cohen commentedThis is a warning from the fb_devel.modue that you don't have to worry too much about. It is intended to catch problems where a database is copied from a live site to a development site. In that case it is important to change the facebook app settings to a new app, for the development site.
Hosting a facebook app is a two way street. Your server talks to facebook and facebook to your server. So if you configured things on drupal by visiting https://www.example.com/...., facebook will reach your application over https. Then if you log into your site at http://example.com/... the module is warning you that the site is at that URL, but facebook will reach the server via another URL (https://...) In this case you can ignore the warning. If the URL were say www.example.com and dev.example.com, then you'd have a problem that needs to be fixed.
Comment #3
fehin commentedThank you for the feedback. Are you saying we should create a different app for the dev site?
It would be nice to have a way of setting the url that it sends to facebook. I use Ubercart ssl to remove https from the main pages so it only appears on cart, admin, and payment pages, however facebook module still picks the https. When someone clicks on my fbconnect for example,, it says
"An error occurred with MyfbApp. Please try again later."The url is www.example.com/upgfeb, upgfeb is the dev site. The fbconnect url shows this:
https://www.facebook.com/dialog/permissions.request?api_key=133249736695318&app_id=133249736695318&display=popup&fbconnect=1&locale=en_US&method=permissions.request&next=http%3A%2F%2Fwww.Example.com%2Fupgfeb%2Ffb%2Fchannel%3Ffb_xd_fragment%23%3F%3D%26cb%3Df2663a784674698%26relation%3Dopener%26transport%3Dfragment%26frame%3Dfd2ec8b01ecf55%26result%3D%2522xxRESULTTOKENxx%2522&return_session=1&sdk=joey&session_version=3Comment #4
thoughtcannon commentedI get this error message even thought I don't have a separate dev site.
The Facebook Application labeled examplefbapp has a suspicious connect_url. The value is http://www.example.com/, while something starting with http://example.com was expected. Consider editing thoughtcannonfbapp.
Facebook integration in general is very buggy around my site, but this is the only error message I'm getting and I'm thinking it's not as benign as it is being made out to be.
If I get this message without a dev environment and with all of the settings using a matching url (http://example.com), then is it not indicative of a more serious problem? Any help on removing this is appreciated.
Also, the error message shows up twice in a row.
Thx.
Comment #5
thoughtcannon commentedI am now also getting this message even though I have changed no settings:
The Facebook Application labeled examplefbapp has a suspicious callback_url. The value is http://www.example/fb_cb/76360edcf1f27fe17gf0f6653ba9b48/, while something starting with http://thoughtcannon.net was expected. Consider editing thoughtcannonfbapp.
Comment #6
thoughtcannon commentedTried to sync again. This is the first attempt I have made to change anything since my comment on March 25th.
In addition to errors above it returned this:
Failed to set application properties on Facebook: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d' at line 1 42000
exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d' at line 1' in /home/user/public_html/example.com/includes/database/database.inc:2039
Stack trace:
#0 /home/rubadub/public_html/thoughtcannon.net/includes/database/database.inc(2039): PDOStatement->execute(Array)
#1 /home/rubadub/public_html/thoughtcannon.net/includes/database/database.inc(595): DatabaseStatementBase->execute(Array, Array)
#2 /home/user/public_html/example.com/includes/database/database.inc(2218): DatabaseConnection->query('UPDATE {fb_app}...', Array, Array)
#3 /home/user/public_html/example.com/sites/all/modules/fb/fb.admin.inc(282): db_query()
#4 /home/user/public_html/example.com/includes/form.inc(1390): fb_admin_set_properties_form_submit('UPDATE {fb_app}...', Array)
#5 /home/user/public_html/example.com/includes/form.inc(830): form_execute_handlers(Array, Array)
#6 /home/user/public_html/example.com/includes/form.inc(350): drupal_process_form('submit', Array, Array)
#7 /home/user/public_html/example.com/includes/form.inc(188): drupal_build_form('fb_admin_set_pr...', Array, Array)
#8 /home/user/public_html/example.com/includes/menu.inc(501): drupal_get_form('fb_admin_set_pr...', Array)
#9 /home/user/public_html/example.com/index.php(22): menu_execute_active_handler()
#10 {main}
Comment #7
Dave Cohen commentedYes, absolutely. While you might not strictly have to, it's a very bad idea to use the same app, and you could easily screw things up.
It sends values that are correct for the vast majority of cases. But if the values are wrong, uncheck the "set props automatically" checkbox, and it will not adjust any settings automatically.
I still don't think that's related to this warning. If www.Example.com is some local domain name like "localhost", they expect problems. You need a domain that can be reached from facebook's servers.
Because you're using domain name with and without the "www". Pick one and stick with it.
That database error sounds serious but off-topic. Please open a new thread if that's still happening.
Comment #8
thoughtcannon commentedI made changes to make sure that all sites were pointing to the same www domain, but that didn't work until I changed my htaccess file to only allow www. Not sure if that helps anyone.
Comment #9
huckle berry commentedI found that I was getting this message because I'd used the same dev app for two different drupal sites. The fix was to run the sync command to update from the current website then to find the remaining offending addresses on the FB app settings page and change them. All the best.
Comment #10
US Drupal Development commentedIt's telling me it is expecting a connect URL like "example.com/sites/all/modules/ad". Clearly not correct. All my addresses/URLs on the Facebook side are correct. I've deleted the application and re-created it. Any ideas why it's looking in such a strange subdirectory?
Comment #11
Dave Cohen commentedNo idea, but I wonder if disabling ad.module will make it go away.