Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

AppInviteDialog Doesn't Work #89

Closed
RussMax783 opened this issue Feb 11, 2016 · 4 comments
Closed

AppInviteDialog Doesn't Work #89

RussMax783 opened this issue Feb 11, 2016 · 4 comments

Comments

@RussMax783
Copy link

When i upgrade to the latest version 0.8, the App invite no longer worked. As i've dug around trying to figure out the problem, i noticed that the API changed. Instead of going AppInviteDialog.show(content, cb) it now has .setContent, .canShow, .show, and .validateWithError. But it seems as though something is not right. When i try and implement it like the sample project. i get the following with this code:

...
const content = new AppInviteContent('http://www.startchillin.com', 'http://www.chillin.io/share/fb-invite-share.png');
debugger;
AppInviteDialog.setContent(content);
...

simulator screen shot feb 11 2016 1 40 19 pm

When i step through I find that the actuall FBSDKAppInviteDialogInterface does not have the methods like setContent, but only has .show...

screen shot 2016-02-11 at 1 39 15 pm

Here is the original error i got right after upgrading

error

@dzhuowen
Copy link
Contributor

Just tested opening the AppInviteDialog and it works as expected.
I don't know how you import the SDK but please make sure you actually upgrade the sdk and the project is actually using the that.

@RussMax783
Copy link
Author

I had downloaded the version prior to 20160210 on the Facebook SDK, So version 0.8 react-native-fbsdk is not compatible with the Facebook SDK Prior to the one mentioned.

@RussMax783
Copy link
Author

Try removing (un-linking) the SDK by removing it from your project and linking it again. If you happened to copy the files when linking there is a chance it's still using the old SDK.

Sent from my iPhone

On Mar 19, 2016, at 8:34 PM, Ivan notifications@github.com wrote:

So I ran into this same issue and I upgraded the FBSDK to 20160316 and it does not work. I have also restarted the packager just in case and still no dice. Any other suggestions?


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub

@ivanbrens
Copy link

@RussMax783 Thanks, that definitely that did the trick.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants