Re: [PHP] Integrating zend-facebook error

2010-11-03 Thread nitesh nandy
Can you paste a dump of complete error stack ?

On Sun, Oct 31, 2010 at 10:12 PM, Yuri Yarlei yuriyar...@gmail.com wrote:

 Hi,

 I'm trying to integrate facebook to show the wall in a site.

 ok, i generate the auth_token here:

 https://login.facebook.com/code_gen.php?api_key=API_KEYv=1.0

 And put the rest connection configuration here:

 $facebookArr = array(
 appapikey = $appapikey,
 appidkey = $appidkey,
 appsecret = $appsecret,
 appcallbackurl = $appcallbackurl,
 'cookie' = true,
 'token' = $token

 );
$fb = new FacebookRestClient($facebookArr['appapikey'],
 $facebookArr['appsecret']);

$result = $fb-call_method('facebook.auth.getSession',
array('auth_token' =$facebookArr['token'],
 'generate_session_secret' = true));

 Its work, but only the first time, if i refresh i get this exception:

 exception 'FacebookRestClientException' with message 'Invalid parameter'

 If i generate the token again, its work for the first time again.

 Please someone have any recent tutorial to integrate facebook to some php
 site?



 Atenciosamente,
 Yuri Yarlei.
 www.yuriyarlei.net (under construction)
 Programmer PHP, JAVA, CSS, ORACLE 10g, PostgreSQL;
 Next step is the SCJP.
 Se você ainda não esta com dor de cabeça, é por que ainda cabe um pouco
 mais de conhecimento.




-- 
Regards,

Nitesh Nandy


[PHP] php imap_search fails for subject strings which have apostrophe

2010-10-22 Thread nitesh nandy
I've to search for messages from Gmail Inbox over IMAP using search by
SUBJECT . The php-imap imap_search()  works fine when the subject is pure
alphanumeric. If the subject string has an apostrophe or a dash then the
search fails.

imap_seach($mbox, 'ALL SUBJECT search string');

imap_seach($mbox, 'ALL SUBJECT this is a string without quote'); //Works
imap_seach($mbox, 'ALL SUBJECT this is a string with quote's and da-sh');
//Doesn't Work

I've tried using the Zend Framework IMAP library too, it fails too. I've
been talking to people over some forums, they say subject search via imap on
gmail works for them.

What can be the problem here? I've tried escaping them but it did not help.

Any help is appreciated.

-- 
Regards,

Nitesh Nandy