Posts by Marcelo Galvão • 351 points
16 posts
-
0
votes1
answer131
viewsA: Facebook SDK login Popup
This popup you say is because they used the javascript SDK to log in with Facebook, not PHP , which is your case. In your case you can do the following, in the Facebookredirectloginhelper method you…
-
0
votes2
answers46
viewsA: Problem with facebook share plugin
Sometimes this is because the image to be displayed is either heavy or when Facebook calls the image url the same delay to reply/return. Already when you make the second attempt he already has it.…
-
1
votes2
answers106
viewsA: Why does Graph API only return to 25 groups?
Beyond the object date the object is also returned paging, and if the user has more than 25 groups the object paging will contain the "next" and "Previous" property containing a url to the…
-
3
votes1
answer2823
viewsA: Login with facebook api does not return user email
You are requesting email permission at login time? FB.login( function(response){ // ... }, {scope: 'email'}); Remembering that if the user leaves the email as private/empty, there is no way to pick…
-
1
votes1
answer293
viewsA: Return the previous page after logging into facebook oauth
If you are generating the login link via php just change it dynamically. For example, on the news page: $helper = new FacebookRedirectLoginHelper('http://seusite/noticia.php'); $loginUrl =…
-
2
votes1
answer122
viewsA: How to access albums from a Fan Page on Facebook?
Your code is wrong but that’s not the problem. Facebook recently changed its policies and now it needs a token for such a request. I modified the beginning of your code, if you run you will see the…
-
0
votes4
answers168
viewsA: How to redirect url with htaccess out of the domain?
Hey, try it like this: RewriteEngine On RewriteBase / RewriteRule ^/?$ http\:\/\/plus\.google\.com\/+Coca-Cola\/ Note: Bring the URL always escaping with a backslash ( ) the ":", ".", "/"…
-
0
votes2
answers96
viewsA: Is it possible to go back to the old Facebook box?
Yeah, well, that’s changed. To display the face if 2 or more friends have liked the page you can set the attribute "data-show-faces" to true, in the Facebook html tag. Exe.: <div class="fb-like"…
-
0
votes3
answers2739
viewsA: Maintain the Hover effect when clicking on the link (active)
It would not be the case to create a class (exe. active) pro link that contains the same effect as Hover and on the landing page you check which of the links should receive the such class?
-
0
votes4
answers3411
viewsA: Set generic "date - * " attributes with javascript;
In jQuery to manipulate the attribute data-* use like this: To catch: $('#campo').data('valor'); Setar: $('#campo').data('valor', 8);
-
2
votes2
answers555
viewsA: Facebook Open Graph of the link of the post of my site does not appear description and thumbnail is small
You’re not writing facebook meta tags, are you? And for the image to appear larger it should be 600x315 or 1200x630. <meta property="og:title" content="Lorem ipsum" /> <meta…
-
1
votes1
answer3923
viewsA: PHP Posting System (Blog)
You are overwriting the variables at the time of picking up the "attachment". Change variable name, example: $sql2 = mysql_query("select * from anexo where fk = $id"); while($linha2 =…
phpanswered Marcelo Galvão 351 -
3
votes1
answer179
viewsA: How to redirect through a notification?
The notification link can only lead to a relative link from the app’s own canvas. "The relative path/GET params of the target (for example, 'index.html? gift_id=123', or '?gift_id=123')..."…
-
3
votes1
answer397
viewsA: In PHP, is there any way to import only one function from a given file?
You don’t have that in PHP. But normally you don’t create as many loose functions as this, usually you create classes and they contain functions/methods, etc. And to avoid conflict of…
-
2
votes4
answers8659
viewsA: Receive real-time input value
The input has an event called onkeyup, which is when the user "drops" the key. Then you check if it has already finished typing. For example, if the date is in the "dd/mm/yyyy" format, check if the…
-
0
votes2
answers108
viewsA: Product Share from Virtual Store to Facebook
At this very moment Facebook must be going through some problem. I have a website here that does exactly that but now it loads and sometimes it doesn’t. This site is a couple of months online…