ShareKit icon indicating copy to clipboard operation
ShareKit copied to clipboard

Can't share to Facebook

Open AndyCummins opened this issue 12 years ago • 10 comments

So, I try and share to Facebook using:

[SHKFacebook shareItem:item];

The log in screen for Facebook comes up ok but when I hit the 'log in' button after typing in my credentials the screen just pauses for a second then closes instead of showing the content edit screen. When I checked Facebook the content was not sent.

Then if you try a second time to share there is no log in and the blank Facebook pop up appears for a few seconds then closes.

This issue does not occur in the iOS Simulator but when I deploy to a device (iPad2 or iPhone 4) the sharing does not work.

Any ideas?

AndyCummins avatar Aug 31 '11 17:08 AndyCummins

Also an app that I have in the app store which uses sharekit to share to facebook has also stopped working in teh same way.

AndyCummins avatar Sep 01 '11 07:09 AndyCummins

Hi Andy: This is my first adoption of ShareKit, so I can't comment on what made it stop working.

I'm having the same difficulty in that ShareKit logs me into my FB account through a popup screen and the dies. Other services - Twitter, email - seem to be working fine. I'm getting warnings from FBRequest.m: "Class 'FBXMLHandler' does not implement the 'NSXMLParserDelegate' protocol". Thoughts?

peter40b avatar Sep 06 '11 02:09 peter40b

Now, I've implemented the https://github.com/troppoli/ShareKit with the hopes that it has an improved FB implementation...

Simulator result: ... but instead of getting the handsome (if you can call it that) FBConnect window, I'm getting Safari logging into FB. Yes, it asks for permission. At the end of the login sequence, I get a dialog box: Cannot Open Page: Safari cannot open the page because the address is invalid. The url is www.facebook.com/connect/uiserver.php...

Device result: On my iPad, it fires up the FB client and gives the default home page at the end of the sequence. And, I'm not getting any FaceBook post editing or anything... any assistance would be most appreciated.

peter40b avatar Sep 06 '11 03:09 peter40b

OK, I kept digging and found a thread from May 2011 https://github.com/ideashower/ShareKit/issues/234 and then implemented the README.txt of this post https://github.com/dagerydoo/ShareKit.

Now, I must have fixed my configuration issues (I didn't know I had) so now it logs in and takes me to the post page in Safari (for simulator) and the FB client on iPad and back when complete. But, It's not respecting my item definition. It gives me an ad for the app but, a blank window to say something about it. Is there an issue with FB and the URL as item?

peter40b avatar Sep 06 '11 04:09 peter40b

https://github.com/ideashower/ShareKit/issues/122 is a similar problem.

I went to https://developers.facebook.com/docs/reference/dialogs/feed/ and discovered that FB's policy is to post only user-generated content per "message field comment":

This field will be ignored on July 12, 2011 The message to prefill the text field that the user will type in. To be compliant with Facebook Platform Policies, your application may only set this field if the user manually generated the content earlier in the workflow. Most applications should not set this.

Hmmm.

peter40b avatar Sep 06 '11 12:09 peter40b

It worked for me. Thanks a lot for sharing Peter!

scurioni avatar Nov 02 '11 01:11 scurioni

Thank you.

brackendev avatar Nov 17 '11 19:11 brackendev

Great help ! Thanks ! :)

hy7716 avatar Feb 17 '12 08:02 hy7716

Helped me too. It's important to note that Step 3 in https://github.com/dagerydoo/ShareKit refers to pre-2.0 ShareKit which has an SHKConfig.h. This file in 2.0 changes to a subclass of DefaultSHKConfigurator.h

mgiraldo avatar Apr 28 '12 06:04 mgiraldo

Hello everyone. I have the same issue. I don't know how to fix it. Can u help me ? I don't know what I have to do. Just after I log in Facebook, the popover view die.

StevenMasini avatar Jun 29 '12 22:06 StevenMasini