Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Twitter Integration in Webworks SmartPhone

Hii All,
When I am Trying this code

<div id="custom-tweet-button">
			<a href="https://twitter.com/share?url=https%3A%2F%2Fdev.twitter.com%2Fpages%2Ftweet-button" target="_blank">Tweet</a>
		</div>

 and the CSS part

<style type="text/css" media="screen">
			#custom-tweet-button a {
				display: block;
				padding: 2px 5px 2px 20px;
				background: url('https://twitter.com/favicons/favicon.ico') 1px center no-repeat;
				border: 1px solid #ccc;
				width: 50px;
			}

		</style>

 
The code is working Fine in Chrome Ripple Emulator Beta 0.9.8,
But when I am trying to run the code in Simulator
It is showing this error

This method requires a POST.
/intent/tweet/update

 
Please Help me if any one Know the code or having this solution.

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Twitter Integration in Webworks SmartPhone

Actually I want to add a Twitter TWEET Button in my App Last Screen.
But I didn't find the solution of the above problem..
Please Help if any one implement such code in any Project.

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
BlackBerry Development Advisor
cdelcol
Posts: 37
Registered: ‎01-08-2010
My Device: Various

Re: Twitter Integration in Webworks SmartPhone

There is no concept of target="_blank" in a WebWorks application. It contains only a single webview. There is work being done to support this use cases specifically. Timing is TBD.

 

https://github.com/blackberry/BB10-WebWorks-Framework/issues/230

Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Twitter Integration in Webworks SmartPhone

Hi cdelcol,

The above code, I get it from the developer site of twitter.
I check the above code in Ripple Simulator, And it's working fine.
But when I check it in Simulator, the above problem is occurring.

Please suggest me if anyone know the code or can solve the above problem.

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Developer
Nitish_Pheonix
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300

Re: Twitter Integration in Webworks SmartPhone

Hii All,
I am also facing such Problem while intregating Twitter in Webworks Smartphone.
It's quite urgent for me to intregate Twitter.
Please Help me ASAP....

Thanks & Regards,
Himansu

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
BlackBerry Development Advisor
chadtatro
Posts: 620
Registered: ‎10-01-2009
My Device: Z10

Re: Twitter Integration in Webworks SmartPhone

We have just posted samples of how to integrate Twitter, Facebook, and Foursquare using OAuth, into an application.  They're samples made for BB10, but the code should translate to previous SDK's as well with little modification needed.

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Twitter-Facebook-amp-Foursquare-...

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro