I tried implementing that and i get an error on my console: "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains"
I am running my app from localhost. I have defined my app domain on facebook with another domai other than localhost since facebook app configuration does not accept localhost as a domain. i have tried uploading the app to the actual domain other than localhost and don't get any error but the page still does not show.
Please help.
Thanks SimonFlack I am using your code it works fine for me .but there a bug that I didn't solved it.
this is a screenshots of what I got.
Please can you tell me what I must put here : window.location = 'http://www.facebook.com/dialog/oauth?client_id=145849512154270&redirect_uri=http://www.whitefox.no/projects/m.UnivMobile.com/&display=touch&scope=publish_stream';
and
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '136041603241236', // App ID from the App Dashboard
What should I put here ?????? channelUrl : 'http://www.facebook.com/dialog/oauth? client_id=145849512154270&redirect_uri=http://www.whitefox.no/projects/m.UnivMobile.com/&display=touch&scope=publish_stream', // Channel File for x-domain communication
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
// Additional initialization code such as adding Event Listeners goes here
Thank you for this solution.I tested it it works fine for me.
But I have got an error.This is a screen shots:
When I click on 'OK' button in the top, its fine,but I want to solve this problem.
This my view :
Ext.define("UnivMobile.view.Facebook", {
extend: 'Ext.Panel',
config: {
title: "LikeUs",
layout: 'fit',
listeners: {
show: function() {
What should I change here??//window.location = 'http://www.facebook.com/dialog/oauth?client_id=145849512154270&redirect_uri=http://www.whitefox.no/projects/m.UnivMobile.com/&display=touch&scope=publish_stream';
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '136041603241236', // App ID from the App Dashboard
What should I put here?? //channelUrl : 'http://www.facebook.com/dialog/oauth?client_id=145849512154270&redirect_uri=http://www.whitefox.no/projects/m.UnivMobile.com/&display=touch&scope=publish_stream', // Channel File for x-domain communication
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
// Additional initialization code such as adding Event Listeners goes here