Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS ShareKit, twitter logout? facebook status empty?
    primarykey
    data
    text
    <p>I am using ShareKit plugin for iPhone to enable social sharing for the application I'm working on. I set up everything, I stripped it to have Facebook and Twitter services only, connected successfully to both and now I have 1 problem in each of the services...</p> <p>The problem with Twitter is how to logout/signout...<br> ShareKit sends the text and the url to Twitter's publish box. It is saving status perfectly. The question is where to put "logout" button for twitter? I want the iPhone user to logout in order to change username. This is done by calling the method<br> <code>[SHKTwitter logout];</code>.<br> Now, the problem is where to put the button that will fire this method? In navigationToolbar of Twitter actionSheet I already have 2 buttons and the toolbar (bottom one) is covered by the keyboard?</p> <p><em>[EDIT]: I solved this issue by modifying the twitter action sheet. I resized the textView and then added UIToolbar and changed its position so that it fits into the gap between the keyboard and textView. Into the toolbar I added one button with an action that calls a logoutTwitter method</em> </p> <p>Facebook problem is more of a mystery...<br> So, in my sharreKitButtonHandler I have the following code: </p> <p><code> NSURL *url = [NSURL URLWithString:@"http://www.domain.com"];<br> SHKItem *shareItem = [SHKItem URL:url title:self.itemTitle.text];<br> SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:shareItem];<br> [actionSheet showFromToolbar:self.shareKitToolbar]; </code></p> <p>This code prepares some ivars of a shareItem object and in the case of Twitter shareKit manages to fill the status box so that user just needs to press publish and its done...<br> In the case of Facebook it is not working. FB dialog pops out and the share box is empty saying "What's on your mind?" The url and the title are not put into the publish form?</p> <p>So, please if you have any clue what's going on in the latter problem or how to solve the former problem, I would really appreciate your help...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload