Quizmaina sample error connectying to FB friends - Windows Phone

0 votes

Hi we are testing the QuizMania sample demo and getting the error: Given URL is not permitted by the application configuration: One or more of the given URL's is not permitted by the Apps settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

The game plays well while connecting with random player!

I am also running the appwarps2 server locally and I have checked that the FB ID is correct.

As a first step I sucessfully installed and setup the chat server app from the tutorial here:

http://appwarps2.shephertz.com/dev-center/

All worked O.K.

I then downloaded the QuizUp like trivia game from the samples page and have been having trouble getting it started.

http://appwarps2.shephertz.com/downloads/download-onpremwarp.php

1) I ran the server as in the previous chat server sample using the server files provided with the quiz game sample using windows_start.bat. (just like the previous sample)
 
2) Created a java project and imported the file system for the java server folder provided with the trivia game sample and added the .jar file to the build path and ran the program.

3) Logged in to the AppWarp Dashboard and created a zone and room (just like the previous sample) also added room properties IsPrivateRoom = false.
(server command window & Eclipse console now displays the zone and room just created)

4) I ran the trivia game sample in VS2013 having changed the global context variables API_KEY = "app key given when created zone in step 3 above", HOST_NAME = "127.0.0.1"  and GameRoomId = "id given when I created room in step 3 above"

I am always getting error while trying to connect to FB friend in the game!

 

Here are our files:

Global Context
        public static String localUsername = "TestUser";
        public static String opponentName="No Opponent";
        public static bool AmIOwner = false;
        //create your game at apphq and find the api key and secret key
        public static string API_KEY = "XXXXXXXXXXXXXXXX";
        public static String HOST_NAME = "192.168.0.8"; // IPv4 Address
        public static String GameRoomId = "647227785";
        public static List<string> joinedUsers=new List<string>();
        public static Dictionary<string, object> tableProperties = null;
        public static WarpClient warpClient;
        public static bool IsConnectedToAppWarp = false;
        public static int MaxUsersInRoom = 2;
        public static ConnectionListener conListenObj;
        public static String FacebookAppId = "XXXXXXXXXXXXXXX";
        public static String FacebookAccessToken="";
        public static String UserFacebookId = "";
        public static String RemoteFacebookId = "";
        public static String RemoteFacebookName = "";
        public static RoomReqListener roomReqListenerObj;
        public static NotificationListener notificationListenerObj;
        public static ZoneRequestListener zoneRequestListenerobj;

Server Demo AppConfigg.json file:
{
    "TickTime" : 200,
    "ListenPort" : 12346,
    "MasterHost" : 127.0.0.1,
    "LogLevel" : "WARN",
    "FlashPolicyPort" : 8430,
    "AdminUsername" : "admin",
    "AdminPassword" : "password",
    "HSQLDBFile" : "HSQLDBFile"
}

 

Can you help with this please?

Julian

asked May 21, 2015 in AppWarpS2 by wiredvoltage (84 points)
edited May 21, 2015 by wiredvoltage

1 Answer

+1 vote
 
Best answer

Hi,

The issue is not related to AppWarp S2. The issue is about Facebook being used in Windows Phone platform. I suspect the reason is invalid configuration of Facebook settings. You can consult following page to know more about this issue:
https://www.facebook.com/help/community/question/?id=542958419109491

You need to enable "Embedded browser OAuth Login" in advance settings sections of Facebook dashboard. You don't have to create website settings as this is a WP app. Please try this solution and let us know if it helps or not.

Thanks

answered May 21, 2015 by Suyash Mohan (900 points)
selected May 21, 2015 by wiredvoltage
Hi Suyash, many thanks for the info. Yes it was the "Embedded browser OAuth Login" setting after all. But I'm rather concerned why this wasn't mentioned in my previous post regarding this problem!

Thanks
Hi!,
This sample was made by other developer. So I had to search about integrating FB in WP8 devices. I didn't knew about this myself while answering your question on the other thread. But I am happy to hear that your issue is now resolved :)
Thanks
OK fine and ance again many thanks for resolving the issue.

Great stuff
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...