Skip to content

Commit

Permalink
fix links to the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Nov 1, 2011
1 parent 6591789 commit 640ad39
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@
);

// This formats our home URL so that we can pass it as a web request
$encoded_home = urlencode(AppInfo::getHome() .'close.php');
$encoded_home = urlencode(AppInfo::getHome());
$redirect_url = $encoded_home . 'close.php';

// These two URL's are links to dialogs that you will be able to use to share
// your app with others. Look under the documentation for dialogs at
// developers.facebook.com for more information
$send_url = "https://www.facebook.com/dialog/send?redirect_uri=$encoded_home&display=popup&app_id=$app_id&link=$encoded_home";
$post_to_wall_url = "https://www.facebook.com/dialog/feed?redirect_uri=$encoded_home&display=popup&app_id=$app_id";
$send_url = "https://www.facebook.com/dialog/send?redirect_uri=$redirect_url&display=popup&app_id=$app_id&link=$encoded_home";
$post_to_wall_url = "https://www.facebook.com/dialog/feed?redirect_uri=$redirect_url&display=popup&app_id=$app_id";
} else {
// Stop running if we did not get a valid response from logging in
exit("Invalid credentials");
Expand Down

0 comments on commit 640ad39

Please sign in to comment.