Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 47

jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
06/03/13 05:37 PM (12 years ago)

Share function

Well i had to take a break as i had to concentrate on my festival this past weekend and thats a 24 hr job for a few weeks. I am back making and improving my apps. My question is i am using the youtube playlist plugin for ios.. A request for my app is a share function. I see in the plugin there is a facebook and twitter plugins but i dont really understand how they work. Can someone point me to a example app or help explain if it would fit a share need within the app.. Thanks
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/03/13 08:30 PM (12 years ago)
I believe you can do this with a little modification to the Youtube plugin. The "Invisible Twitter/Facebook" plugins share a message to those social networks that can be preset on the control panel. So, all you need to do is modify the Youtube plugin to add a 'share' button somewhere that points to a screen made with one of those plugins. Here you have two options: 1) If you know the videos ahead of time, you can manually create "Invisible Facebook/Twitter" screens for each video, with the link to the video in the pre-set status message. 2) You can dynamically create an instance of the "Invisible Facebook/Twitter" plugin in the custom code for the share button on the Youtube plugin. That code would add into the JSON values for the newly created screen the link to the video. This way is a bit more complicated, but would be my preferred method as it becomes much cleaner in the long run - especially if you're linking to many videos or dynamically changing the list of videos.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.