Skip to content
This repository has been archived by the owner on Dec 15, 2017. It is now read-only.

Commit

Permalink
Fixed named parameter issue in call to AppRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
andyborrell committed May 6, 2014
1 parent 7315898 commit 2f01008
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion friendsmash_advanced/Assets/Scripts/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ void MyPictureCallback(Texture texture)
if (texture == null)
{
// Let's just try again
Util.LogError("Error loading user picture");
LoadPicture(Util.GetPictureURL("me", 128, 128),MyPictureCallback);

return;
Expand Down Expand Up @@ -629,6 +628,9 @@ private void onChallengeClicked()
else
{
FB.AppRequest(
to: null,
filters : "",
excludeIds : null,
message: "Friend Smash is smashing! Check it out.",
title: "Play Friend Smash with me!",
callback:appRequestCallback
Expand Down
4 changes: 3 additions & 1 deletion friendsmash_complete/Assets/Scripts/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ void MyPictureCallback(Texture texture)
if (texture == null)
{
// Let's just try again
Util.LogError("Error loading user picture");
LoadPicture(Util.GetPictureURL("me", 128, 128),MyPictureCallback);

return;
Expand Down Expand Up @@ -578,6 +577,9 @@ private void onChallengeClicked()
else
{
FB.AppRequest(
to: null,
filters : "",
excludeIds : null,
message: "Friend Smash is smashing! Check it out.",
title: "Play Friend Smash with me!",
callback:appRequestCallback
Expand Down
4 changes: 3 additions & 1 deletion friendsmash_payments_complete/Assets/Scripts/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ void MyPictureCallback(Texture texture)
if (texture == null)
{
// Let's just try again
Util.LogError("Error loading user picture");
LoadPicture(Util.GetPictureURL("me", 128, 128),MyPictureCallback);

return;
Expand Down Expand Up @@ -635,6 +634,9 @@ private void onChallengeClicked()
else
{
FB.AppRequest(
to: null,
filters : "",
excludeIds : null,
message: "Friend Smash is smashing! Check it out.",
title: "Play Friend Smash with me!",
callback:appRequestCallback
Expand Down
4 changes: 3 additions & 1 deletion friendsmash_payments_start/Assets/Scripts/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ void MyPictureCallback(Texture texture)
if (texture == null)
{
// Let's just try again
Util.LogError("Error loading user picture");
LoadPicture(Util.GetPictureURL("me", 128, 128),MyPictureCallback);

return;
Expand Down Expand Up @@ -635,6 +634,9 @@ private void onChallengeClicked()
else
{
FB.AppRequest(
to: null,
filters : "",
excludeIds : null,
message: "Friend Smash is smashing! Check it out.",
title: "Play Friend Smash with me!",
callback:appRequestCallback
Expand Down

0 comments on commit 2f01008

Please sign in to comment.