Posting to Twitter without showing Popup.

:stuck_out_tongue: I’m so happy.

I bought Twitter Facade and although it didn’t work and I emailed them but got no reply after 2 days I managed to fix the 3 errors in it myself. Yippee.

If only there was a way to have Facebook too (without going Pro because I’m poor) then my game would be complete.

catchphrase.png

I’m glad you got it working.  I used it the day I replied and it worked fine for me, or I wouldn’t have given a thumbs up.  Sorry you ran into issues.

Hello guys,

Have any of you managed to post images to twitter via the “GG library” or the “twitter facade” one ?

Currently, posting with “twitter facade” displays a blank image on twitter, and using “GG library” will not post anything (if posting with an image). Posting just messages works fine on both.

Cheers,

Mihai

Hi Ferlio

I’m using Twitter Facade successfully.

To successfully post images you have to have your image in the documents directory.

The only way to have an image in there is to move it yourself from your resource directory using code in your main.lua

 Then it’s as simple as:

local imagePath = ( system.pathForFile( “yourImage.png”, system.DocumentsDirectory ) )

TF.tweet( { message = “I Love this game check it out”, imageFullPath = imagePath } )

Let me know if this works for you, it took me many hours to get this working!

Hello QuizMaster,

I got it working with “twitter facade”, the reason it posted a blank image is because I didn’t save it properly in system.DocumentDirectory.

Thanks,

Mihai

Glad to help Mihai, and happy you’ve got it working.

Martin.

I know this is an old post but I’ve just spent 2 days trying to get GGTwitter to work to no avail.

I set up dev.twitter to get the keys, secret and so forth but got stumped on the Callback URL, I have no idea what it means or what it’s used for, after hours of searching and coming across countless other devs with the same issue I gave up. All you get is technical jargon from Twitter employees that doesn’t make any sense what-so-ever.

I just made the callback URL my website address, it’s all I could think of.

Anyhow after adding oAuth.lua and multipartForm.lua and GGTwitter.lua to my project it looked as simple as this to post to Twitter…

local GGTwitter = require( “GGTwitter” )

twitter = GGTwitter:new( “key”, “secret” )

twitter:authorise()

twitter:post( “Check out my photo!”, “image.png” )

Fat chance! It simply won’t authorise.

I read somewhere that you need to include the callback URL, set up in the Twitter Application settings, like this…

twitter = GGTwitter:new( “key”, “secret”, callbackURL )

Still it won’t Authorise.

I put in a very long delay in case it needed time to connect and authorise, no luck.

Another thing, looking through the oAuth code I noticed it uses the system documents directory, this seems odd if you are trying to send an image with a tweet, surely it should be looking in the resource directory for images as the documents directory doesn’t accept png’s or jpg’s?

Still, I can’t send even a simple message without an image either.

I’ve had to scrap the whole idea of using GGTwitter because apart from the basic usage, there are no other instructions, I have no idea if I’m missing something, maybe something I have to put in the build settings perhaps, I don’t know.

It doesn’t help that I’m building for Android so I have to keep building the app, uploading it to my device and testing it on my device as the simulator doesn’t support this feature, it’s a very slow process of trial and error.

Something tells me that having only the starter version of Corona and that I’m using Android might be the problem.

Now I’m down to using a simple Twitter intent, using system.openURL and while it works I have run into another problem…

system.openURL("https://twitter.com/intent/tweet?screen_name=???

How the hell am I supposed to find the users screen name to fill in the ??? I’ve searched high and low for the answer, it’s no use putting my screen name in there, I want the user to post a tweet on their time line not mine!

This is the last part of my project, the game is 100% finished, I’ve put in 4000 hours of work, my friends and family are totally hooked on it, it could be a hit if anyone ever finds it.

 I’m also stuffed because I can’t afford the $600 to go Pro to use the social plugin, even if I could it still doesn’t support Twitter on Android.

I’m caught in a catch22 situation, I was going to use any money I made from my first game to buy Pro for my next 3 projects but without social sharing my game might never be found.

ingemar, is there any chance you could help me getting the GGTwitter to work for me, you seem to have it working, can you walk me through it or point out anything I might have missed please, I’m desperate.

Twitter Facade 1.3 also works, but you’ll need to create a twitter app to authenticate your posts.

http://www.silverthorax.com/libs/twitter-facade

I just verified this today, so I know it works.

Hi

I read somewhere that Twitter Facade doesn’t work so that’s why I never bought it.

Have you downloaded Twitter Facade recently and got it working?

GGTwitter looked simple so I’m worried that I will run into the same issues I had with GGTwitter?

I appreciate your reply roaminggamer :smiley:

:stuck_out_tongue: I’m so happy.

I bought Twitter Facade and although it didn’t work and I emailed them but got no reply after 2 days I managed to fix the 3 errors in it myself. Yippee.

If only there was a way to have Facebook too (without going Pro because I’m poor) then my game would be complete.

catchphrase.png

I’m glad you got it working.  I used it the day I replied and it worked fine for me, or I wouldn’t have given a thumbs up.  Sorry you ran into issues.

Hello guys,

Have any of you managed to post images to twitter via the “GG library” or the “twitter facade” one ?

Currently, posting with “twitter facade” displays a blank image on twitter, and using “GG library” will not post anything (if posting with an image). Posting just messages works fine on both.

Cheers,

Mihai

Hi Ferlio

I’m using Twitter Facade successfully.

To successfully post images you have to have your image in the documents directory.

The only way to have an image in there is to move it yourself from your resource directory using code in your main.lua

 Then it’s as simple as:

local imagePath = ( system.pathForFile( “yourImage.png”, system.DocumentsDirectory ) )

TF.tweet( { message = “I Love this game check it out”, imageFullPath = imagePath } )

Let me know if this works for you, it took me many hours to get this working!

Hello QuizMaster,

I got it working with “twitter facade”, the reason it posted a blank image is because I didn’t save it properly in system.DocumentDirectory.

Thanks,

Mihai

Glad to help Mihai, and happy you’ve got it working.

Martin.