| |
| Description: | Update FB Status using cURL |
| Language: | php3 |
| Nickname: | btb |
| Page URL: | http://utilitybase.com/paste/vLR |
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
| <?PHP
/*******************************
* Facebook Status Updater
* Christian Flickinger
* http://nexdot.net/blog
* April 20, 2007
*******************************/
$status = 'YOUR_STATUS';
$first_name = 'YOUR_FIRST_NAME';
$login_email = 'YOUR_LOGIN_EMAIL';
$login_pass = 'YOUR_PASSWORD';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://login.facebook.com/login.php?m&next=http%3A%2F%2Fm.facebook.com%2Fhome.php');
curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($login_email).'&pass='.urlencode($login_pass).'&login=Login');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR, "my_cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "my_cookies.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
curl_exec($ch);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_URL, 'http://m.facebook.com/home.php');
$page = curl_exec($ch);
curl_setopt($ch, CURLOPT_POST, 1);
preg_match('/name="post_form_id" value="(.*)" />'.ucfirst($first_name).'/', $page, $form_id);
curl_setopt($ch, CURLOPT_POSTFIELDS,'post_form_id='.$form_id[1].'&status='.urlencode($status).'&update=Update');
curl_setopt($ch, CURLOPT_URL, 'http://m.facebook.com/home.php');
curl_exec($ch);
?>
|
|
| Latest pastes |
• No description (text) by anonymous 2 days ago using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using S... |
• No description (text) by anonymous 2 days ago <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
... |
• No description (php3) by anonymous 2 days ago @Entity
@Table(name = "embeddable_ex01_customer")
@Access(AccessType.FIELD)
public class Custo... |
• Error (text) by SeverDever 3 days ago #talker on
on 1:input:*: {
if (!%co1) || (!%co2) { echo -a Please set the colors in the men... |
• No description (text) by anonymous 4 days ago Minä voi kertoa itsestäni lyhyesti:
Minä olla 23-vuotias mies Olympos-maasta jota tavikset kut... |
• No description (text) by anonymous 5 days ago <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:... |
• No description (asm8051) by anonymous 1 week ago ;root9895_nixie_tube
START: MOV DPTR,#NIXIE_TUBE
MOV R0,#0
LOOP: MOV A,R0
MOVC ... |
• No description (text) by KDSL 1 week ago http://tw.myblog.yahoo.com/jintai_camera/article?mid=1&prev=18&next=-2&page=1&sc=1
http://www.... |
• No description (text) by anonymous 1 week ago [19:15] missing close-brace
while executing
"proc pub:request {nick host hand chan arg} {
... |
• No description (text) by anonymous 1 week ago # events/document_view (Upcoming Events — ISPY )
[manage] [history]
has 1 embedded image with... |
• Code (text) by programator 2 weeks ago #yoconfieso que cada vez que voy a un nevado pruebo la nieve a ver qué tal sabe. La mejor ha sido... |
• No description (text) by anonymous 2 weeks ago <servlet>
<servlet-name>Colorize</servlet-name>
<servlet-class>org.springframework.we... |
• ambergirl1922 (text) by anonymous 2 weeks ago <div style="border-width: 4px; border-style: double; border-color: black; width:340px; height:37... |
• No description (c) by anonymous 2 weeks ago [code:c]/*Program of 8051 single-chip pulse width modulation (PWM) brightness control of LED ligh... |
• lab1 (text) by yoyyo 2 weeks ago
/c/sys
idle 999
/c/sys/access
snmp w
http ena
tnet ena
/c/port 1
pvid 11
/c/port 2
pvi... |
• No description (csharp) by anonymous 2 weeks ago /*reescrevendo o mesmo código, supondo que a média da instituição é 6:
É só copiar e colar no co... |
• test (javascript) by spacerabbit 2 weeks ago <script type="text/javascript">GA_googleFillSlot("home-300x250-sx")</script> |
• test (javascript) by spacerabbit 2 weeks ago <script type="text/javascript">GA_googleFillSlot("home-300x250-sx")</script> |
• No description (text) by anonymous 3 weeks ago public CustomFilterDescriptor StartDateFilterDescriptor
{
get
... |
• lab1 (text) by yoyyo 3 weeks ago >> SSH Server# /c/d
script start "Alteon Application Switch 2424 E" 4 /**** DO NOT EDIT THIS LI... |
• lab1 (text) by yoyyo 3 weeks ago /cfg/sys/mmgmt
addr 10.10.242.28
mask 255.255.248.0
gw 10.10.240.1
tftp mgmt
ena
apply
sav... |
• test (text) by carlos 3 weeks ago foo |
• No description (text) by anonymous 3 weeks ago SELECT [dbo].[Order].Id
FROM [EnkronaMain].[dbo].[Order]
inner join OrderItem
ON [Enkr... |
• No description (text) by anonymous 3 weeks ago <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"... |
• No description (text) by anonymous 3 weeks ago using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using S... |
• No description (cpp) by anonymous 3 weeks ago
// check case of a single equation and small matrix
if( src->width <= 3 && src2->width... |
• No description (text) by anonymous 3 weeks ago
// check case of a single equation and small matrix
if( src->width <= 3 && src2->width... |
• No description (java122) by anonymous 4 weeks ago package fr.relief.intra.relaps.jee.dao.coordonnees;
import org.unitils.database.annotations.Tr... |
• No description (java122) by anonymous 4 weeks ago package fr.relief.intra.relaps.jee.dao.springcontext;
import fr.relief.intra.relaps.jee.dao.co... |
• No description (xml) by anonymous 4 weeks ago <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans... |
• No description (miva) by anonymous 4 weeks ago <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans... |
• No description (xml) by anonymous 4 weeks ago <?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml... |
• No description (xml) by anonymous 4 weeks ago <?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml... |
• No description (html) by anonymous 4 weeks ago No content |
• No description (ocaml) by anonymous 4 weeks ago type num = string
type var = string
type aexp =
Num of num
| Var of var
| Add of aexp ... |
• No description (cpp) by anonymous 4 weeks ago if ( m_State == S_Edit && m_EditState == ES_Move )
{
stlport::hash_map< int , stlport... |
• No description (text) by anonymous 4 weeks ago if ( m_State == S_Edit && m_EditState == ES_Move )
{
stlport::hash_map< int , stlport... |
• Mounting (text) by RWO 4 weeks ago
Startup
[BluRay.0] main.c:299:Entering _start
[BluRay.0] main.c:333:Entering InitSystem
... |
• No description (text) by anonymous 4 weeks ago $.post("MYURL.PHP",
function(data){
process(data);
}, "text"); |
• No description (text) by afxgroup 4 weeks ago void copy_access( struct accessdata *to, struct accessdata *from )
{
strncpy( to->alias, from-... |
• functions (text) by afxgroup 4 weeks ago static unsigned long __saveds PATH_List_Construct_Func( struct accessdata **obj __asm__("a1") )
... |
• No description (text) by afxgroup 4 weeks ago while( node )
{
next = IExec->GetSucc(node);
IExec->Remove( node );
IChooser->Fre... |
• No description (text) by afxgroup 4 weeks ago while( node )
{
next = IExec->GetSucc(node);
IChooser->FreeChooserNode( node );
node = nex... |
• No description (text) by afxgroup 4 weeks ago struct userdata
{
struct userdata *next;
struct userdata *edit;
long id;
char user[16]... |
• asdasd (text) by anonymous 1 month ago Version:st3.0.0J; gcd:bofalse; b:nu0.50980392156863; anim1:nu2; g:nu0.49803921568627; optunitn:bo... |
• No description (xhtml10) by anonymous 1 month ago <li><a href="http://feedproxy.google.com/%7Er/latimes/news/%7E3/pfWR1a9GQgo/la-na-russian-agents-... |
• No description (text) by anonymous 1 month ago 29T163805, T1, ThreadID = 4832 maps to short thread id T1
29T163805, T1, Starting Log. Current ... |
• No description (text) by anonymous 1 month ago 29T162030, T1, ThreadID = 3856 maps to short thread id T1
29T162030, T1, Starting Log. Current ... |
• log (text) by r3v 1 month ago r3v* üzenete:
*szia
(@)Fłó?ácš??.üzenete:
*szia
r3v* üzenete:
*engedik hogy ilyen keson... |
• No description (text) by afxgroup 1 month ago 320x240 320x240 640x480 640x480
software ... |