Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to add a facebook share button to a private roku channel

I have created a private Roku channel. I want to be add a facebook share button on my channel. My research so far has showed that I can use rourltransfer brightscript component to call any API.

I have even downloaded a sample channel from this link that shows how to request the api and parse the json formatted data and then display it.However, I am not able to figure out how can I call the facebook share api in brightscript. Any suggestions how can I add this share API on roku channel would be really appreciated.
0 Kudos
3 Replies

Re: How to add a facebook share button to a private roku cha

guys if i could i get any head start on this would be really apreciated
0 Kudos
SolveLLC
Level 8

Re: How to add a facebook share button to a private roku cha

Do all the heavy lifting facebook stuff on the backend. The only thing the Roku needs to do is pass user identification via http POST/GET.

Example:

The user clicks on the "Share to Facebook" button.
The Roku contacts http://www.yourserver.com/facebook.php?id=12345678
The backend server replies "I don't know you. Please visit www.yourserver.com/facebook to link your facebook account" or "I know you, post whatever it is to facebook".

Its a lot easier than trying to make the Roku do everything.
0 Kudos
Veeta
Level 7

Re: How to add a facebook share button to a private roku cha

I agree with SolveLLC. I've done a few OAuth 2 integrations for APIs direct from BrightScript. Unless it's part of an app's core feature set, like the facebook channel, then it's better to try and avoid implementing in BrightScript.

Are you already running a server-side component and doing a registration step?
0 Kudos