Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 205
Total: 205

Author Topic: problem with tweeting my pictures  (Read 3968 times)

0 Members and 1 Guest are viewing this topic.

Offline howtogrowbud

  • Member
  • *
  • Posts: 10
    • View Profile
problem with tweeting my pictures
« on: January 13, 2010, 01:32:14 am »
gallery pro works great as far as i can tell with one exception, when i go to tweet a picture it says wrong username and password (but its not) and i have tried it with several accounts.
any suggestions?
her is a link to my site www.howtogrowbud.com/budforums

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: problem with tweeting my pictures
« Reply #1 on: January 13, 2010, 07:41:04 am »
Do you have any special characters in your username or password or is it just letters and numbers?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline howtogrowbud

  • Member
  • *
  • Posts: 10
    • View Profile
Re: problem with tweeting my pictures
« Reply #2 on: January 13, 2010, 10:41:11 am »
my user name is howtogrowbud   thats it nothing special

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: problem with tweeting my pictures
« Reply #3 on: January 13, 2010, 07:59:30 pm »
Quick test to try save the code below as testtweet.php and edit $message $username and $password variables below to your twitter information and then upload this file to your website and run it and post back the results here.
Code: [Select]
<?php
$message 
'Your message to tweet';
$username 'yourusername';
$password  'yourpassowrd';


$host "http://twitter.com/statuses/update.xml?status=".urlencode(stripslashes(urldecode($message)));
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL$host);
    
curl_setopt($chCURLOPT_VERBOSE1);
    
curl_setopt($chCURLOPT_RETURNTRANSFER1);
    
curl_setopt($chCURLOPT_USERPWD"$username:$password");
    
curl_setopt($chCURLOPT_HTTP_VERSIONCURL_HTTP_VERSION_1_1);
    
curl_setopt($chCURLOPT_POST1);
    
$result curl_exec($ch);
    
$resultArray curl_getinfo($ch);
    
curl_close($ch);

    if (
$resultArray['http_code'] == "200" || empty($resultArray['http_code']))
    {
      die(
"Tweet Sent");
    } 
else
 
{
    
 die('Failed to tweet ' $resultArray['http_code'] . " Result = " $result);
    }
?>

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline howtogrowbud

  • Member
  • *
  • Posts: 10
    • View Profile
Re: problem with tweeting my pictures
« Reply #4 on: January 13, 2010, 09:23:56 pm »
ok i put testtweet.php here http://www.howtogrowbud.com/testtweet.php and got this for results

Failed to tweet 417 Result =
Expectation Failed

The expectation given in the Expect request-header field could not be met by this server.

The client sent

    Expect: 100-continue

but we only allow the 100-continue expectation.

and then i put it here http://www.howtogrowbud.com/testtweet.php and got same results

Failed to tweet 417 Result =
Expectation Failed

The expectation given in the Expect request-header field could not be met by this server.

The client sent

    Expect: 100-continue

but we only allow the 100-continue expectation.

BTW i still have no reply on my other post about problems with the video addon (just bringing it up in case it somehow got over looked)


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: problem with tweeting my pictures
« Reply #5 on: January 13, 2010, 11:00:45 pm »
Have updated code please do the same as with the first post with this sample and try it again

Code: [Select]
<?php
$message 
'Your message to tweet';
$username 'yourusername';
$password  'yourpassowrd';


$host "http://twitter.com/statuses/update.xml?status=".urlencode(stripslashes(urldecode($message)));
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL$host);
    
curl_setopt($chCURLOPT_VERBOSE1);
    
curl_setopt($chCURLOPT_RETURNTRANSFER1);
    
curl_setopt($chCURLOPT_USERPWD"$username:$password");
    
curl_setopt($chCURLOPT_HTTP_VERSIONCURL_HTTP_VERSION_1_1);
curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:'));
    
curl_setopt($chCURLOPT_POST1);
    
$result curl_exec($ch);
    
$resultArray curl_getinfo($ch);
    
curl_close($ch);

    if (
$resultArray['http_code'] == "200" || empty($resultArray['http_code']))
    {
      die(
"Tweet Sent");
    } 
else
 
{
    
 die('Failed to tweet ' $resultArray['http_code'] . " Result = " $result);
    }
?>

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
8153 Views
Last post January 12, 2008, 02:39:18 pm
by cralor
1 Replies
4729 Views
Last post March 02, 2008, 08:16:45 pm
by SMFHacks
7 Replies
5165 Views
Last post November 11, 2008, 10:49:10 am
by jsdoyle
1 Replies
3042 Views
Last post November 22, 2008, 09:27:37 pm
by SMFHacks
6 Replies
4725 Views
Last post June 09, 2012, 10:02:40 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal