facebook - Getting this error after months of no problems - redirect_uri not owned by application -
i had problem when started facebook integration of our site. after doing searching, found solution , fixed it.
now, few months later, has stopped working. nothing changed in either javascript code or app settings on facebook developers site. once again set searching, , found same answers before: site url must match redirect_uri etc.
i have app domain: "domain.com"
, site url: "http://www.domain.com"
error given:
api error code: 191
api error description: specified url not owned application
error message: redirect_uri not owned application.
i'm @ loss has happened. has facebook changed api? (i did check documentation, , it's still same).
any appreciated. javascript code below:
var publish = { method: 'feed', redirect_uri: 'http://www.domain.com', link: 'http://www.domain.com', picture: 'http://pathtoimage/logo.png', name: 'name', caption: 'title', description: 'description, blah blah' }; function fbcallback(response) { // stuff here } fb.ui(publish, fbcallback);
thanks
edit:
checked timestamp , js file hasn't been touched since 16th of march, neither has app settings on facebook, , colleague tested week ago (was still working then)
resolved:
for others having same problem, here's worked me.
it appears fb have tightened security, why working.
working on new release, , using ip address instead of domain access site. new message hadn't seen started appearing in dev console:
when using fb.ui, should not specify redirect_uri.
looks fb api checks url domain in address field of browser (rather redirect_uri) against site url in facebook app settings. tested temporarily pointing our domain ip address, , running facebook api code via domain loaded site, , worked. while we're testing before release, i'll use http://localhost:8080
site url, update site's domain when goes live.
thanks people helped point me in right direction!
Comments
Post a Comment