Does cranberryfacebook plugin works for IOS?

Get help using Construct 2

Post » Tue Dec 22, 2015 8:53 pm

Hi,
I'm developing an IOS game. The game is complete, now I want to share score of a user when the user hits the share button.

I tried the official C2 fb plugin, I created a test app to in the main app on my facebook developer account. I inserted the App ID and App Secret in the plugin. When I try that on my desktop browser it shows the below error.

"Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

I tired testing on my device thinking that it would work on the device, as I added IOS platform on my facebook developer account, but when I hit the share button nothing is happening.

Here are the events I defined,
On start of layout -> Facebook plugin -> login
On touch share
-> Facebook plugin, if logged in -> share on wall "Some Text"
else
-> Facebook plugin -> login
-> share on wall "Some Text"

Because the official facebook plugin is not working, I tried the cranberryfacebook plugin. I defined the events similar to the events defined with the official facebook plugin. I tired testing on the device using intel XDK test app. Same has happened, it's not working. I tried uploading the app through the apploader of iTunes Connect but it is not getting uploaded. Earlier, without cranberry plugin it got uploaded.

Does this plugin works for IOS?

Please help me with a solution.
B
24
S
7
Posts: 330
Reputation: 2,210

Post » Wed Dec 23, 2015 9:38 am

Somebody please help.
B
24
S
7
Posts: 330
Reputation: 2,210

Post » Wed Dec 23, 2015 10:16 am

As it is help in regards to a specific third-part plugin, you should actually directly post help request in the official topic for the addon so the author can help you out.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,093

Post » Wed Dec 23, 2015 11:25 am

@Kyatric thanks for response. I also used the official C2 plugin, but it isn't working. Could please help me with that?
Here are the steps I followed

"I tried the official C2 fb plugin, I created a test app to in the main app on my facebook developer account. I inserted the App ID and App Secret in the plugin. When I try that on my desktop browser it shows the below error.

"Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

I tired testing on my device thinking that it would work on the device, as I added IOS platform on my facebook developer account, but when I hit the share button nothing is happening.

Here are the events I defined,
On start of layout -> Facebook plugin -> login
On touch share
-> Facebook plugin, if logged in -> share on wall "Some Text"
else
-> Facebook plugin -> login
-> share on wall "Some Text""
B
24
S
7
Posts: 330
Reputation: 2,210

Post » Thu Dec 24, 2015 10:33 am

I'm not familiar with using the FB plugin, so I cannot help further and invite you to search the forums in case some others informations are there that you might have missed on.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,093

Post » Tue Dec 29, 2015 3:35 pm

@sudeep98 I do not think the "native" facebook plugin works with mobile apps for the same reason the Twitter plugin does not work.

Twitter plugin compatibility
Since the Twitter API depends on opening separate browser windows, it usually only works inside a normal web browser. This means the button may not work when built in to a native app for Android or iOS, such as with Crosswalk, Ejecta or CocoonJS. To work around this, use the Browser object's Open URL in new window action to open a Twitter page instead.

I am having the same problem with cranberry's facebook plugin. "Given URL..." I was advised to use cranberry's shareapp plugin because it is easier to use and it allows you to share to multiple online social media sites. I have not gotten around to trying it yet. Will let you know if I get to it later.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Wed Dec 30, 2015 7:55 am

@CDogs1964 Yes, please let me know the output after using it. I somehow managed to share on facebook using cranberry's facebook plugin. Here are the steps that I followed:

1. Step up the app on your facebook developers account.
2. Add a platform, android or iOS or windows, of which you are developing.
3. Add a testapp within the main app just created.

I use intel XDK to build the app
4. Then follow this link https://dl.dropboxusercontent.com/u/186 ... index.html

The cranberry's facebook plugin is working for me.
B
24
S
7
Posts: 330
Reputation: 2,210

Post » Sun Jan 03, 2016 6:32 am

@sudeep98 I tried using the method in the link. (Which Sang Ki suggessted too) I obviously replaced the values with those of my game.

<intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/cordova-plugin-facebook" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-facebook" >
<intelxdk:param intelxdk:name='APP_ID' intelxdk:value='311180863621111' />
<intelxdk:param intelxdk:name='APP_NAME' intelxdk:value='Avoid Bird' />
</intelxdk:plugin>

The game built successfully, but when I click the button to test publishing something to my wall, nothing happens.

I also added using the plugin manager within xdk with the same results. I have tried prompting for post as well as publishing post, but no luck as of yet. I emailed Sang Ki so I hope i can get some direction from him.

I use a couple other of his plugins and they work great so I hope i can resolve this one.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Sun Jan 03, 2016 10:27 am

"Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

You should fix that problem inside the facebook app, you have to change the url there, or inside the plugin?

anyway, Intel XDK support an ajax plugin?
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Sun Jan 03, 2016 11:34 am

@CDogs1964 Create a test app on your developer account of facebook and try with that. That worked for me. In order to make the facebook share work, you need to submit your app to the facebook to get it reviewed and approved. In the mean while, you can make the share work with the test app.

Try it and let me know if you are able to make it work.
B
24
S
7
Posts: 330
Reputation: 2,210

Next

Return to How do I....?

Who is online

Users browsing this forum: ColombageEnPLS, gianghl1983 and 10 guests