0

I'm sending lives to other players using the FBSDKGameRequestDialog and want to find out if the user sent them or canceled the request. I've implemented the FBSDKGameRequestDialogDelegate but the methods are unreachable.

The code for the request is as follows:

 FBSDKGameRequestDialog *dialog = [[FBSDKGameRequestDialog alloc] init]; dialog.delegate = self; dialog.content = gameRequestContent; dialog.frictionlessRequestsEnabled = YES; [dialog show]; 

Pretty basic tutorial dialog. From here on I have no feedback about the user actions.

Thanks in advance to anyone that can help me :)

1 Answer 1

1

The delegate defined as a weak referance, so you should declare the dialog globally, not locally.

Just define it as a property, everything should be fine.

Sign up to request clarification or add additional context in comments.

1 Comment

could you post the code example for this answer? I have the same issue.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.