I'm trying to include a simple Like button on my page using HTML 5. I'm including the Javascript SDK on my page like mentioned in the docs but I get a 404 error on the URL. "//connect.facebook.net/en_US/all.js"
Here's my code : http://snipt.org/ujEg8
Here's the channel file code : http://snipt.org/ujEh4
I don't understand whats going on. Please help.
Thanks
smaira
You most likely just need to add the right protocal before the // call, for example:
http://connect.facebook.net/en_US/all.js
See here for more info on the real issue: Is it valid to replace http:// with // in a <script src="http://...">?
Related
I am currently working on a 1 page HTML app that uses URL parameters to do an API call. the URL parameters are set and used in QR codes so its necessary that they are able to change dynamically. A example URL would be something like app.com/index.html/?environment=demo&location=Kiosk
I currently have this app deployed in AWS Amplify, but I cant get other keywords to chain together. I have the following redirects in place:
These redirects make sure that every URL parameter I pass in the link works EXCEPT some keywords like the "location" keyword, next to some others. Using this keyword as a URL param gives a 502 server error, or if the redirects are not used an access denied error.
does anyone know how to get the location keyword to work? Thanks in advance!
You should be able to use a single rule that will forward everything to index.html EXCEPT urls with a "file extension" from the list below. That lets all your links work, but assets like images, fonts, code will pass through.
Doc for: Using Redirects - Single Page Apps
</^[^.]+$|\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json)$)([^.]+$)/>
i am using this libray https://github.com/crino/instagram-ios-sdk after login we getting one error
we created app in instrantgram like :
i have add URL scheme to my application's plist file
how to solve this issue please help me
i got my mistake
Redirect url ig3213f9bbab4841aba216996a24e9138e://authorize
It is clearly stated in the Instagram iOS SDK documentation that the URL Scheme needs to be structured as:
ig[clientId]://
So in your case:
ig3213f9b...
Will not work, try
ig32313...://
You are using OAuth and you are trying to run it on browser.
What you are missing is your OAuth Token, Please check if its there when you hit the API in your code.
May be it can help you..
set the call back url like this:
According to the specification here: http://developers.facebook.com/docs/authentication/pagetab/ I want to autorize user with the server-side flow on page tab. I use PHP-SDK.
My redirect_uri parameter is build like that:
https://www.facebook.com/pages/null/PAGE_ID/app_YOUR_APP_ID
and I keep getting:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
I was trying many different settings combinations. Now I have filled fields: App Domains,Site URL,Canvas URL,Secure Canvas URL,Page Tab URL,Secure Page Tab URL but still without success. Addresses are ending with / and are all the same.
Link are build proper by the sdk. I test building it "by hand" without encoding of redirect_uri param and redirect link build like that:
https://www.facebook.com/PAGE_USERNAME/app_YOUR_APP_ID
https://www.facebook.com/pages/Page_Title/PAGE_ID?sk=app_YOUR_APP_ID
Can someone tell me what i'm doing wrong?
The answer to that question is that facebook documentation is incorrect. Format of return_uri that worked is:
https://www.facebook.com/pages/null/PAGE_ID?sk=app_YOUR_APP_ID
The format of return_uri changed again, the new format is:
https://www.facebook.com/PAGE_NAME?sk=app_YOUR_APP_ID
The facebook C# SDK generates an url that looks like this:
http://m.facebook.com/logout.php?next=http://www.facebook.com/dialog/oauth/?response_type=token&display=popup&scope=user_about_me&client_id={MY APP ID}&redirect_uri=http://www.facebook.com/connect/login_success.html&confirm=1
(obviously I've set the APP id in the real code).
Problem is that the lougout page presents a very generic error message "An error occurred. Please try again later.". If I cut the oauth part out and navigate to that, oauth works fine. But it seems like the NEXT parameter isn't really panning out.
Any pointers? This is with the latest 5.0.9 (BETA) build of the SDK.
I was having the same issue. What I did was remove the braces (the '{' and '}') from the App Id to get it to work. Hope that helps
I have a toy facebook app I'm playing with so I can understand how it all works. It's fine if you go the the app like this: http://apps.facebook.com/pushup-challenge/ (and connect it). But if you then go to it from your facebook page, FB uses the URL http://apps.facebook.com/pushup-challenge/?ref=bookmarks.
In my log file, I see that FB is POSTing the data and including the /?ref=bookmarks to it's call to my codeigniter system. This is causing it to either say "invalid URI parameters" or give me a 404, depending on if I've edited the system/core/URI.php file to add rawurlencode() to a particular call.
I've tried using mod_rewrite to get rid of the query_string, too, but since it's POSTing, it doesn't appear to be working (though I'm not exactly sure why).
Has anyone else run into this? How did you fix it?
Thanks in advance,
Hans
try $config['uri_protocol'] = “PATH_INFO”; and set enable_query_strings = TRUE
or
set
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-?=';
in config.php
Because it isn't calling your file by name (just ?ref=bookmarks) the server runs thru the standard default files: index.htm, index.html, index.asp. Because you need to accept a POST, you need a server that allows POSTs to htm & html if you choose to use those. Index.asp will accept POSTs on most servers, and that works for me.
SOLUTION: Add a file (index.asp), that calls the real app that you named in the App settings.