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