Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Set Up Wittybunny look a like app (Test Mode)

King James Harden Jr

The Patriot
Advanced Member
Messages
601
Reaction score
0
Points
26
https://developers.facebook.com/

Click > Get Started

Register as a Facebook Developer
Do you accept the Facebook Platform Policy and the Facebook Privacy Policy? > YES > Next

We need to verify your account to complete your registration.
Your phone number will be added to your timeline but won't be visible to your friends.

Confirmation via phone or CC

Confirm Code

Create a New App
Display Name - your desired Name (GoT)
Create New ID

Add Product
-> Facebook Login

Choose Platform > Web

Getting our Site URL - kung wala pa kayong domain/website libre si heroku
Go to https://www.heroku.com/ > Sign Up

First name*
Last name*
Email Address*
Company name
Country*
Primary Development Language* > PHP

Confirm you account in your email and set your password and proceed

https://dashboard.heroku.com/apps

Select PHP

Introduction > Im ready
Set up > Select & Download the Heroku CLI for Windows 32 or 64 > Install ( it will install GIT - needs to access your php files and saves
it to your xampp/htdocs or wamp/www) *basic installation of xampp/wamp and to run simple "Hello World". (to contnue Go to :Setup:)

Open Git GUI > Create New Repository > Directory > C:\xampp\htdocs\my_project

Menu > Repository > Git Bash

$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password:
...

****if error found: "Login is currently incompatible with git bash/Cygwin/MinGW"
try using cmd prompt > open cmd > type heroku - it will update Heroku Command Line Interface (CLI)

$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password:
...

It should say "Loggen in as <[email protected]>"

***fyi only not really important***
Checking your php version
$ php -v
Checking your composer version
$ composer -V
Checking your git version
$ git --version

:Setup:
I have installed the Heroku Click

Prepare the app - skip

Open Git GUI > Create New Repository > Directory > C:\xampp\htdocs\my_project
Menu > Repository > Git Bash
Deploy the app
type> heroku create
Creating sharp-rain-871... done, stack is cedar-14
http://sharp-rain-871.herokuapp.com/ | https://git.heroku.com/sharp-rain-871.git
Git remote heroku added

$ git clone https://git.heroku.com/sharp-rain-871.git

"C:\xampp\htdocs\my_project\sharp-rain-871\index.php"
add a file called "index.php"
<?php
echo "hello world";
?>

$ git remote add origin https://git.heroku.com/sharp-rain-871.git
$ git add .
$ git commit -m "initial commit"
$ git push origin master

visit your link
https://sharp-rain-871.herokuapp.com/

Done First Setup

Step Two

Selecting Your Character ( for me is Game of Thrones )
Javasript Button & Random select

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GOT</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>

<button type="button" id="button">Who is your GOT Character</button>
<!--height="249" width="476"-->
<img id="image">
<script>
$("#button").click( function()
{
var random = Math.floor((Math.random() * 3) + 1);

if(random == 1){
$("#image").attr("src", "jon.jpg").css("height","249px").css("weight","476");
}else if(random == 2){
$("#image").attr("src", "danaerys.jpg").css("height","249px").css("weight","476");
}else{
$("#image").attr("src", "cersei.jpg").css("height","249px").css("weight","476");
}

$(this).hide();
}
);
</script>

</body>
</html>


$ git add .
$ git commit -m "initial commit"
$ git push origin master

visit your link
https://sharp-rain-871.herokuapp.com/


Step 3
Share your result
Back to your site URL
Site URL> https://sharp-rain-871.herokuapp.com/


copy and insert the ff code after <body> tag

<script>
window.fbAsyncInit = function() {
FB.init({
appId : '<your app id>', //it should be generated automatically
cookie : true,
xfbml : true,
version : 'v2.8'
});
FB.AppEvents.logPageView();
};

(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>


<fb:login-button
scope="public_profile,email"
onlogin="checkLoginState();">
</fb:login-button>


//****Share Button
//****https://developers.facebook.com/docs/plugins/share-button#


<div class="fb-share-button" data-href="https://sharp-rain-871.herokuapp.com/"
data-layout="button" data-size="small" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore"
target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fsharp-rain-871.herokuapp.com%2F&src=sdkpreparse">Share</a></div>




to make you app live and available to public

https://developers.facebook.com/apps/
click your app
App Review

Make Game of Thrones public? Yes


***debugger for image
https://developers.facebook.com/tools/debug/sharing/

finished Product
View attachment 318996
 

Attachments

  • jon.PNG
    jon.PNG
    264.7 KB · Views: 99
  • got.zip
    896.5 KB · Views: 91
di ako sanay magprogram TS thanks sa post pero dagdagan ko lang po ito pag gusto ko ng additional random pics no?

if(random == 1){
$("#image").attr("src", "jon.jpg").css("height","249px").css("weight","476 ");
}else if(random == 2){
$("#image").attr("src", "danaerys.jpg").css("height","249px").css("weight" ,"476");
}else{
$("#image").attr("src", "cersei.jpg").css("height","249px").css("weight"," 476");
}
 
di ako sanay magprogram TS thanks sa post pero dagdagan ko lang po ito pag gusto ko ng additional random pics no?

if(random == 1){
$("#image").attr("src", "jon.jpg").css("height","249px").css("weight","476 ");
}else if(random == 2){
$("#image").attr("src", "danaerys.jpg").css("height","249px").css("weight" ,"476");
}else{
$("#image").attr("src", "cersei.jpg").css("height","249px").css("weight"," 476");
}

yes correct sir :D
tapos every changes made

$ git add .
$ git commit -m "initial commit" <- palitan ung "initial commit" khit anu
$ git push origin master
 
Last edited:
Hello po. Alam nyo ba kung paano gawin yung site na "itrymo.com"?

I am searching for the same script with admin panel sana. Someone message me here and offered me but I never got a response from him. Maybe he's busy.
 
I am searching for the same script with admin panel sana. Someone message me here and offered me but I never got a response from him. Maybe he's busy.

Sayang naman po. Gusto ko kasi gumawa ng site na ganun :(
 
ask lng po para san po to?

kung blogger k or you want some traffic to be redirected to your page or programmer enthusiast or walang magawa basta mag program for fun. this is a script for it.
you can add this concept ung mga random image, verses of the day, lotto outcome and more. look for wittybunny sa facebook

I am searching for the same script with admin panel sana. Someone message me here and offered me but I never got a response from him. Maybe he's busy.
what do you need for admin panel? save mo ung mga nag visit?

Hello po. Alam nyo ba kung paano gawin yung site na "itrymo.com"?

this site is easy. random lang ung output.
 
Last edited:
kung blogger k or you want some traffic to be redirected to your page or programmer enthusiast or walang magawa basta mag program for fun. this is a script for it.
you can add this concept ung mga random image, verses of the day, lotto outcome and more. look for wittybunny sa facebook


what do you need for admin panel? save mo ung mga nag visit?



this site is easy. random lang ung output.

Gawa naman po kayo thread nun, gusto ko talaga eh.
Ang galing nun, kapag nagcomment ka sa fbcomment. Ex. Itrymo.com/name maylalabas.
 
Last edited:
TS! sinusundan ko kasi yung instructions mo nagkaka error ako dito pano ba to?

View attachment 340932

Thanks
 

Attachments

  • Capture.PNG
    Capture.PNG
    8.5 KB · Views: 3
Back
Top Bottom