ShareKit
ShareKit copied to clipboard
Can't share to Facebook
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?
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.
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?
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.
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?
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.
It worked for me. Thanks a lot for sharing Peter!
Thank you.
Great help ! Thanks ! :)
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
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.