tag:blogger.com,1999:blog-87906335308793092332024-03-13T23:05:25.210-07:00Facebook for developerFacebook developers,Facebook tricks,Facebook application development,Facebook developers application, facebook application developers,facebook application developer, facebook app development,Facebook developer app,Facebook app developers,Facebook app developer,apps development,mobile app development,app development,app developers,app developer,app development software,Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-8790633530879309233.post-42206117016575242672021-05-16T22:17:00.019-07:002021-06-15T08:53:35.317-07:00JAVA Notes<h1 style="text-align: center;"> My JAVA Notes</h1><h2>JRE :</h2><span style="font-family: courier;">Java Runtime Environment.</span><h2>JVM :</h2><span style="font-family: courier;">Java Virtual Machine, is part of <b>JRE.</b></span><div><h2 style="text-align: left;">JDK :</h2><span style="font-family: courier;"><div style="text-align: justify;">Java Development Kit, is responsible for executing codes. it includes JRE + JVM. JDK Version is Java version on a machine.</div></span><h2 style="text-align: left;">JAVA SE :</h2><span style="font-family: courier;"><div style="text-align: justify;">Java Standard Edition, is the minimum requirements for JAVA to work 'run an application' on a machine.</div></span><h2 style="text-align: left;">WORA :</h2><span style="font-family: courier;">Write Once, Run Anywhere, is to describe Java Applications.</span><h2 style="text-align: left;">Byte Code :</h2><span style="font-family: courier;"><div style="text-align: justify;">Java Code gets converted to bytecode which was interpreted by JVM. Compiled Bytecode is understood by all machines, that is why they call it WORA.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Java Program → Javac 'Compile' → Bytecode → Any machine.</div></span><h2 style="text-align: left;">Case sensitive :</h2><p><span style="font-family: courier;">👍 <b>S</b>ystem.out.println()</span>;</p><p>👎 <span style="font-family: courier;"><b>s</b>ystem.out.printLn();</span></p><p><span style="font-family: courier;"></span></p><h2>JAVA Code example :</h2><p style="text-align: justify;"><span style="font-family: courier;">My Environment : I've installed JDK16-.0.1 in C:\Program Files. I have registered Environment Variables 'System Variables' to add "bin\".</span></p><h2>The Code :</h2><p style="text-align: justify;"><span style="font-family: courier;">My Code will print the sentence Hello Java!, I'm using Command Line from start to end.</span></p><p style="text-align: justify;"><span style="font-family: courier;"><i><b>public class Welcome {</b></i></span></p><p style="text-align: justify;"><span style="font-family: courier;"><i><b>public static void main(String[] args) {</b></i></span></p></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><div><p style="text-align: justify;"><span style="font-family: courier;"><i><b>System.out.println("Hello Java!");</b></i></span></p></div></blockquote><div><p style="text-align: justify;"><span style="font-family: courier;"><i><b>}</b></i></span></p><p style="text-align: justify;"><span style="font-family: courier;"><i><b>}</b></i></span></p><h2>Command Line Prompt :</h2><p style="text-align: justify;"></p><ol><li><span style="font-family: courier;">Open command line from Start menu 'With or without Admin previliges'</span></li><li><span style="font-family: courier;">Create Directory in C:\ </span><span style="font-family: courier;">→ C:\cd JavaCode 'Enter'</span></li><li><span style="font-family: courier;">Create Text File in JavaCode called Welcome.java </span><span style="font-family: courier;">→ C:\JavaCode>md Welcome.java</span></li><li><span style="font-family: courier;">Type my Code into Welcome.java file </span><span style="font-family: courier;">→ C:\</span><span style="font-family: courier;">JavaCode></span><span style="font-family: courier;">echo <b><i>public class Welcome { public static void main(String[] args) { System.out.println("Hello Java!"); } }</i>> Welcome.java</b> 'Enter'</span></li><li><span style="font-family: courier;">Compile Welcome.java file using javac </span><span style="font-family: courier;">→ C:\</span><span style="font-family: courier;">JavaCode>javac Welcome.java 'Enter', notice a file called 'Welcome.class' is created in the same directory '</span><span style="font-family: courier;">JavaCode', this file is bytecode file.</span></li><li><span style="font-family: courier;">Execute Welcome.java file </span><span style="font-family: courier;">→ C:\</span><span style="font-family: courier;">JavaCode>java Welcome 'Enter'</span></li><li><span style="font-family: courier;">the resule '<b>Hello Java</b>!' appears right after the previous command in Command Line Prompt.</span></li></ol><div></div><p></p><h2>Video :</h2></div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='100' height='482' src='https://www.blogger.com/video.g?token=AD6v5dzcsYVdKZhDX5NwUXNyyYYNyID0OJFtOoSdgIC4achNb0zeNu0vLReZoMnyc3cYb2Dx5ezaxAe8zHOU9elqzw' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div><br /><div><h2>Variables : </h2></div><div><ul style="text-align: left;"><li>Use lower Camel Case, because it is more easier to read. I.e.:</li></ul><i><span style="font-family: courier;">String driverFirstName;</span></i><br /><ul style="text-align: left;"><li>Are case sensitive like all Java instructions.</li></ul><span style="font-family: courier;">String driverFirstName;</span> is different from <span style="font-family: courier;">String driverfirstname;</span><br /><ul style="text-align: left;"><li><span style="font-family: times;">Must start with an alphabet letter [a to z] except Dollar Sign [$] and Underscore Sign [_] but not recommended</span><span style="font-family: times;">.</span></li></ul><i><span style="font-family: courier;">String 2ndCase;</span></i><span style="font-family: times;"> is not accepted.</span><br /><ul style="text-align: left;"><li><span style="font-family: times;">No spaces allow.</span></li></ul><i><span style="font-family: courier;">String driver FirstName;</span></i><span style="font-family: times;"> is not accepted.</span></div><div><h2>Variable Types : </h2></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><h3 style="text-align: left;"><span style="font-family: times; font-size: large;">Numbers</span></h3></blockquote><p></p><ol style="text-align: left;"><ol><li style="text-align: justify;"><span style="font-size: medium;"><b>Integers </b></span>: 10 digits max long. <i><span style="font-family: courier;">int ThisNum = 1234567890;</span></i> but doesn't allow fractions although it accepts negative values.</li><li style="text-align: justify;"><b style="font-size: large;">Long</b> : Bigger integer. <i><span style="font-family: courier;">long BigInt = 1234567890 * 10000000;</span></i></li><li style="text-align: justify;"><b style="font-size: large;">Double </b>: Allow fractions, negative and pretty much anything. <span style="font-family: courier;"><i>double ThisAny = -654.221;</i></span></li></ol></ol><div style="text-align: justify;"><i><span style="font-family: times;"><blockquote><blockquote>The more your variable type length is, the slower your program will be 'benefits come with a price'. Don't use <b>Double</b> when you can use <b>Integers</b>.</blockquote></blockquote></span></i></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><div><h3 style="text-align: left;"><span style="font-family: times; font-size: large;">Text</span></h3></div></blockquote><div><ol style="text-align: left;"><ol><li style="text-align: justify;"><span style="font-family: times;"><b><span style="font-size: medium;">String</span></b>. </span><span style="font-family: courier;"><i>String MyName="Jave";</i></span><span style="font-family: times;"> Allows many characters 'phrases' with 2<b> double quotations</b> surrounding.</span></li><li style="text-align: justify;"><span style="font-family: times; font-size: medium;"><b>Character</b></span><span style="font-family: times;">. </span><i><span style="font-family: courier;">Char OpnLine='A';</span></i><span style="font-family: times;"> Allows only one character with 2 </span><b style="font-family: times;">single quotations </b><span style="font-family: times;">surrounding.</span></li></ol></ol><div style="text-align: justify;"><div style="text-align: left;"><h3><span style="font-family: times; font-size: large;"> Decision</span></h3><div><ol style="text-align: left;"><ol><li><span style="text-align: justify;"><b style="font-family: times; font-size: large;">Boolean. </b><span style="font-family: courier;"><i>boolean Agreed=true;</i></span><span style="font-family: times; font-size: medium;"> and </span><i><span style="font-family: courier;">boolean NotAgreed=false;</span></i></span></li></ol></ol><div style="text-align: justify;"><b><span style="font-family: georgia; font-size: medium;"><u>Note</u><i> : </i></span></b><span style="font-family: courier; font-style: italic;">In </span><span style="text-align: left;"><span style="font-family: courier;"><i>Math Multiplication and Division comes 1st, then Addition and Subtraction.</i></span></span></div></div><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><br /></i></span></span></div><div style="text-align: justify;"><span style="text-align: left;"><i><span style="font-family: times;">The following code shows the difference between using Integers and Doubles, and how you need to Convert a Type to get a correct more accurate result.</span></i></span></div><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><br /></i></span></span></div><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><b><div style="text-align: justify;">public class SomeMath {</div><div style="text-align: justify;">public static void main(String[] args) {</div></b></i></span></span></div></div></div></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;"><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>String Phrase1="Output Decimal";</b></div></i></span></span></div></div></div></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>String Phrase2="Output Integer";</b></div></i></span></span></div></div></div></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>String Equation="33 Div 10";</b></div></i></span></span></div></div></div></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>double FirstNum=33;</b></div></i></span></span></div></div></div></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>int SecondNum=10;</b></div></i></span></span></div></div></div></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>double DblRslt=FirstNum/SecondNum;</b></div></i></span></span></div></div></div></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><span style="font-family: courier;"><i><div style="text-align: justify;"><b>int IntRslt=(int)FirstNum/SecondNum;</b></div></i></span></span></div></div></div></div></blockquote><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><div style="font-family: courier; font-style: italic; text-align: justify;"><b>System.out.println(Phrase1 + " from equation like " + Equation + " , we use Double. The result is : " + DblRslt);</b></div><div style="font-family: courier; font-style: italic; text-align: justify;"><b>System.out.println(Phrase2 + " from equation like " + Equation + " , we use Integer. The result is : " + IntRslt);</b></div><div style="font-family: courier; font-style: italic; text-align: justify;"><b>}</b></div><div style="font-family: courier; font-style: italic; text-align: justify;"><b>}</b></div><div style="font-style: italic; text-align: justify;"><span style="font-family: times;"><b>The Output is :</b></span></div><div style="text-align: justify;"><div style="font-family: courier; font-style: italic;"></div><blockquote style="font-family: courier; font-style: italic;"><div>Output Decimal from equation like 33 Div 10 , we use Double. The result is : 3.3</div><div>Output Integer from equation like 33 Div 10 , we use Integer. The result is : 3</div></blockquote><p><span style="font-family: times;"><i> </i></span><b><span style="font-family: georgia; font-size: medium;"><u>Note</u><i> </i></span></b><span style="font-family: times;"><i>: </i>Truncation is when you divide two integers ( 5 / 2 ) it will be by default 2 not 2.5. Also when multiplying a double and integer, the result is Double (2.5 * 5) will equal 5.0 as double not 5 as integer.</span></p><p><span style="font-family: times;"></span></p><h3 style="text-align: left;"><span style="font-family: times; font-size: large;">Making Decisions, Options 'if-else statement':</span></h3><div><span style="font-family: times; font-size: large;"><span style="font-size: medium;"><span> </span>Example :</span></span></div></div></span></div></div></div></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><div style="text-align: justify;"><div><span style="font-family: times; font-size: large;"><span style="font-size: medium;">Museum ticket equals to 15$, except for :</span></span></div></div></span></div></div></div></div></blockquote><p></p><ol style="text-align: left;"><li>Students.</li><li>People over 60 years old.</li><li>Kids less than or equal to 15 years old.</li></ol><div>The tickets is only 5$. To write a program to help making a decision about the ticket price, I wrote this code:</div><p></p><div><i><span style="font-family: courier;"><b>public class Decisions2 {</b></span></i></div><div><div><i><span style="font-family: courier;"><b>public static void main(String[] args) {</b></span></i></div><div><i><span style="font-family: courier;"><b>boolean isStudent=true;</b></span></i></div><div><i><span style="font-family: courier;"><b>int ticketPrice=10;</b></span></i></div><div><i><span style="font-family: courier;"><b>int age=15;</b></span></i></div><div><i><span style="font-family: courier;"><b>if(isStudent){</b></span></i></div><div><i><span style="font-family: courier;"><b>System.out.println("Ticket Price = 5");</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div><div><i><span style="font-family: courier;"><b>else if (age<=15) {</b></span></i></div><div><i><span style="font-family: courier;"><b>System.out.println("Ticket Price = 5");</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div><div><i><span style="font-family: courier;"><b>else if (age>60) {</b></span></i></div><div><i><span style="font-family: courier;"><b>System.out.println("Ticket Price = 5");</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div></div><div><span style="font-family: times;">Output </span><span style="font-family: courier;">→ Ticket Price = 5</span></div><div><span style="font-family: courier;"><br /></span></div><div><span style="font-family: times; font-size: medium;"><b>→ How to reduce the repetitive code above ?</b></span></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><h4 style="text-align: left;"><span style="font-family: georgia;">Using Logical Operator</span><span style="font-family: courier;"> </span></h4></blockquote><div><ul style="text-align: left;"><li><span style="font-family: courier;">|| means <b>OR</b> (3<5 || 5>3), it checks if the right <b><u>or</u></b> left side are <b>either</b> true. So, if we said (3<5 || 3>5), the the statement is true because one of the sides is true.</span></li><li><span style="font-family: courier;">&& means <b>AND</b> (3<5 && 5>3), it checks if the right <b><u>and</u></b> left side are <b>both</b> true. So, if we said (3<5 && 3>5), then the statement is false because one of the sides is false.</span></li><li><span style="font-family: courier;">! means <b>NOT</b> (!(3<5)), it gives the opposite value, in this case it means <b><u>Not True</u></b> which means <b><u>false</u></b>.</span></li></ul><div><span style="font-family: courier;">Our example 'Museum Ticket', the code would be:</span></div></div><div><div><i><span style="font-family: courier;"><b>public class Decisions2 {</b></span></i></div><div><div><i><span style="font-family: courier;"><b>public static void main(String[] args) {</b></span></i></div><div><i><span style="font-family: courier;"><b>boolean isStudent=true;</b></span></i></div><div><i><span style="font-family: courier;"><b>int ticketPrice=10;</b></span></i></div><div><i><span style="font-family: courier;"><b>int age=15;</b></span></i></div><div><i><span style="font-family: courier;"><b><span> </span>i<span style="font-size: medium;">f(</span></b></span></i><span style="font-size: medium;"><i><span style="font-family: courier;"><b>age<=15 ||</b></span></i><i><span style="font-family: courier;"><b>age>60 </b></span></i><i><span style="font-family: courier;"><b>|| </b></span></i><i><span style="font-family: courier;"><b>isStudent){</b></span></i></span></div><div><i><span style="font-family: courier; font-size: medium;"><b><span> </span>System.out.println("Ticket Price = 5");</b></span></i></div><div><i><span style="font-family: courier; font-size: medium;"><b><span> </span><span> </span>}</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div><div><i><span style="font-family: courier;"><b>}</b></span></i></div></div></div><div><span style="font-family: times;">Output </span><span style="font-family: courier;">→ Ticket Price = 5</span></div><div><h3><span style="font-family: times; font-size: large;">Operators Order :</span></h3></div><div><span style="font-family: times;">Just like how math operators (*, /, +, -) have an order, JAVA Operators have their own order, like so :</span></div><div><ol style="background-color: white; box-sizing: inherit; color: #4f4f4f; font-family: "Open Sans", Helvetica, sans-serif; font-size: 16px; line-height: 1.33333em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 15px; padding: 0px 0px 0px 40px;"><li style="box-sizing: inherit; font-size: 1rem; line-height: 1.7; list-style: decimal; margin: 0px; padding: 0px;">Parentheses ()</li><li style="box-sizing: inherit; font-size: 1rem; line-height: 1.7; list-style: decimal; margin: 0px; padding: 0px;">NOT <code style="background: rgb(247, 247, 248); border-radius: 0.25rem; border: 1px solid rgb(180, 185, 189); box-sizing: inherit; color: #0f2b3d; direction: ltr; display: inline-block; font-family: "Source Code Pro", monospace; font-size: inherit; margin: 0px; padding: 0px 0.25rem; unicode-bidi: bidi-override;">!</code></li><li style="box-sizing: inherit; font-size: 1rem; line-height: 1.7; list-style: decimal; margin: 0px; padding: 0px;">AND <code style="background: rgb(247, 247, 248); border-radius: 0.25rem; border: 1px solid rgb(180, 185, 189); box-sizing: inherit; color: #0f2b3d; direction: ltr; display: inline-block; font-family: "Source Code Pro", monospace; font-size: inherit; margin: 0px; padding: 0px 0.25rem; unicode-bidi: bidi-override;">&&</code></li><li style="box-sizing: inherit; font-size: 1rem; line-height: 1.7; list-style: decimal; margin: 0px; padding: 0px;">OR <code style="background: rgb(247, 247, 248); border-radius: 0.25rem; border: 1px solid rgb(180, 185, 189); box-sizing: inherit; color: #0f2b3d; direction: ltr; display: inline-block; font-family: "Source Code Pro", monospace; font-size: inherit; margin: 0px; padding: 0px 0.25rem; unicode-bidi: bidi-override;">||</code></li></ol><div><span style="color: #0f2b3d; font-family: georgia;">For the expression: </span></div><div><span style="color: #0f2b3d; font-family: georgia;"><span> </span><span style="font-size: medium;"><b>!true || false && true </b></span></span></div><div><span style="color: #0f2b3d; font-family: georgia;">This will have the NOT ! operator evaluated first, so this simplifies to: </span></div><div><span style="color: #0f2b3d; font-family: georgia;"> <span style="font-size: medium;"><b> </b><b>false || false && true </b></span></span></div><div><span style="color: #0f2b3d; font-family: georgia;">Then the AND && operator will be evaluated. </span></div><div><span style="color: #0f2b3d; font-family: georgia;">The combination false && true equals false, and the whole expression becomes: </span></div><div><span style="color: #0f2b3d; font-family: georgia; font-size: medium;"><b>false || false </b></span></div><div><span style="color: #0f2b3d; font-family: georgia;">Finally the OR || operator will be evaluated, and the whole expression evaluates to <b><span style="font-size: medium;">false</span></b>.</span></div></div><div><span style="color: #0f2b3d; font-family: georgia;"><br /></span></div><div><span style="color: #0f2b3d; font-family: georgia;">Bottom line [<i>True </i>|| <i>False</i>] is <b>True</b> while [<i>True</i> && <i>False</i>] is <b>False.</b></span></div><div><span style="color: #0f2b3d; font-family: georgia;"><b><br /></b></span></div><div><span style="color: #0f2b3d; font-family: georgia;"><b>Another way to make a decision in JAVA, is SWITCH STATEMENT.</b></span></div><div><span style="color: #0f2b3d; font-family: georgia;"><b><br /></b></span></div><div><b style="font-family: times; font-size: large;">Switch Statement</b></div><div><span style="font-family: times; font-size: medium;">If we want to write a code to program a coffee machine to give us either Espresso or Latte or Coffee, we assign a passcode to each one of them, like so :</span></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><div style="text-align: left;"><span style="font-family: times; font-size: medium;">Coffee 255, Espresso 616, Latte 314</span></div></blockquote><p><i><span style="font-family: courier; font-size: medium;"><b>public class Switch1 {<br />public static void main(String[] args) {<br />int passCode=255;<br />String Coffee;<br /><span style="white-space: pre;"> </span>switch (passCode) {<br /><span style="white-space: pre;"> </span>case 314: Coffee = "Latte";<br /><span style="white-space: pre;"> </span>break;<br /><span style="white-space: pre;"> </span>case 616: Coffee="Espresso";<br /><span style="white-space: pre;"> </span>break;<br /><span style="white-space: pre;"> </span>case 255: Coffee="Coffee";<br /><span style="white-space: pre;"> </span>break;<br /><span style="white-space: pre;"> </span>default: Coffee="Unknown";<br /><span style="white-space: pre;"> </span>break;<br />}<br />System.out.println("Coffee type is " + Coffee);<br />}<br />}</b></span></i></p><p></p><div style="-webkit-text-stroke-width: 0px; color: black; font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></div><p></p><div style="-webkit-text-stroke-width: 0px; color: black; font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: times;">Output </span><span style="font-family: courier;">→ Coffee type is Coffee</span></div><p> Default Case, always in the end of Switch, and it gives a value whenever all cases are not met.</p><h2 style="text-align: left;">Java Functions</h2><p>Functions in Java like (println()) which is responsible for Print Text on Screen, functions in Java tend to organize and group code. Java executes a Function when a function is called.</p><p>Functions in Java are written like this :</p><p style="text-align: center;"><span style="font-family: trebuchet;">Access modifiers + Function type + Function name + ( + parameters if needed + )</span></p><p>for example :</p><p><span style="font-family: courier;"><b><i>public int SumThis(int X, int Y) {</i></b></span></p><p><span style="font-family: courier;"><b><i>code</i></b></span></p><p><span style="font-family: courier;"><b><i>return integer value;</i></b></span></p><p><span style="font-family: courier;"><b><i>}</i></b></span></p><p>Notes :</p><p><span style="font-size: large;"><b>Parameters</b> </span>exist when needed in defining the function, but <b><span style="font-size: large;">arguments </span></b>exist when calling it.</p><p>for more about Functions in Java , here is a link to the official <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/package-summary.html" rel="nofollow" target="_blank">Java SE 8 Documentations</a></p><div><h3><span style="font-family: times; font-size: large;">Java For Loop :</span></h3></div><div><span><p style="font-family: "Times New Roman"; font-size: medium;">Example : Create a Java application for Multiplication Table with the following properties :</p><p style="font-family: "Times New Roman"; font-size: medium;"><span> </span><span> </span><span> 1) Define Number.</span><br /></p><p style="font-family: "Times New Roman"; font-size: medium;"><span><span> </span><span> </span><span> 2) How many times this number will be multiplied ?</span><br /></span></p><p style="font-family: "Times New Roman"; font-size: medium;"><span><span><span> </span><span> </span><span> 3) Which number to start from ?</span><br /></span></span></p><p style="font-family: "Times New Roman"; font-size: medium;">Multiply (n) starting from (x) for (y) times.</p><p><span style="font-family: courier;"><i><b>/**</b></i></span></p><p><span style="font-family: courier;"><i><b>*Multiplication Table Development 2021</b></i></span></p><p><span style="font-family: courier;"><i><b>*/</b></i></span></p><p><span style="font-family: courier;"><i><b>//Imports</b></i></span></p><p><span style="font-family: courier;"><i><b>import java.util.*;</b></i></span></p><p><span style="font-family: courier;"><i><b>//Main Class</b></i></span></p><p><span style="font-family: courier;"><i><b>public class MultiTable {</b></i></span></p><p><span style="font-family: courier;"><i><b>//Given Input number</b></i></span></p><p><span style="font-family: courier;"><i><b>public static int myNum;</b></i></span></p><p><span style="font-family: courier;"><i><b>//Multiplication counter</b></i></span></p><p><span style="font-family: courier;"><i><b>public static int counter;</b></i></span></p><p><span style="font-family: courier;"><i><b>//Multiplication start</b></i></span></p><p><span style="font-family: courier;"><i><b>public static int startNum;</b></i></span></p><p><span style="font-family: courier;"><i><b> //Main sub</b></i></span></p><p><span style="font-family: courier;"><i><b> public static void main(String[] args) {</b></i></span></p><p><span style="font-family: courier;"><i><b> if (isOK()) {</b></i></span></p><p><span style="font-family: courier;"><i><b> CreatemyTable();</b></i></span></p><p><span style="font-family: courier;"><i><b> System.out.println("----------------------");</b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"> </span> }</b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"> </span>}</b></i></span></p><p><span style="font-family: courier;"><i><b> //Function to check if a given number is negative or decimal or a character.</b></i></span></p><p><span style="font-family: courier;"><i><b> public static boolean isOK() {</b></i></span></p><p><span style="font-family: courier;"><i><b> Scanner myObj = new Scanner(System.in);<span style="white-space: pre;"> </span>//User input 1st number.</b></i></span></p><p><span style="font-family: courier;"><i><b> System.out.println("Enter Number : ");</b></i></span></p><p><span style="font-family: courier;"><i><b> if(myObj.hasNextInt()) {</b></i></span></p><p><span style="font-family: courier;"><i><b> myNum = myObj.nextInt();</b></i></span></p><p><span style="font-family: courier;"><i><b> return true;</b></i></span></p><p><span style="font-family: courier;"><i><b> } else { System.out.println("Error: enter a valid INTEGER.");</b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"> </span>return false;<span style="white-space: pre;"> </span> }</b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"> </span>}</b></i></span></p><p><span style="font-family: courier;"><i><b> //Function to Create the Table.</b></i></span></p><p><span style="font-family: courier;"><i><b> public static void CreatemyTable() {</b></i></span></p><p><span style="font-family: courier;"><i><b> int total;</b></i></span></p><p><span style="font-family: courier;"><i><b> Scanner myObj = new Scanner(System.in);<span style="white-space: pre;"> </span>//User input COUNTER.</b></i></span></p><p><span style="font-family: courier;"><i><b> System.out.println("How many times do you want to multiply your number?!");</b></i></span></p><p><span style="font-family: courier;"><i><b> if(myObj.hasNextInt()) {</b></i></span></p><p><span style="font-family: courier;"><i><b> counter = myObj.nextInt();</b></i></span></p><p><span style="font-family: courier;"><i><b> } else { System.out.println("Error: enter a valid INTEGER.");</b></i></span></p><p><span style="font-family: courier;"><i><b> counter=1;}</b></i></span></p><p><span style="font-family: courier;"><i><b> //Define Start number.</b></i></span></p><p><span style="font-family: courier;"><i><b> Scanner myObj1 = new Scanner(System.in);<span style="white-space: pre;"> </span>//User input start number.</b></i></span></p><p><span style="font-family: courier;"><i><b> System.out.println("Which number do you want to start from?!");</b></i></span></p><p><span style="font-family: courier;"><i><b> if(myObj1.hasNextInt()) {</b></i></span></p><p><span style="font-family: courier;"><i><b> startNum = myObj1.nextInt();</b></i></span></p><p><span style="font-family: courier;"><i><b> } else { System.out.println("Error: enter a valid INTEGER.");</b></i></span></p><p><span style="font-family: courier;"><i><b> startNum=1;}</b></i></span></p><p><span style="font-family: courier;"><i><b> for (int i=1;i<=counter;i++) {</b></i></span></p><p><span style="font-family: courier;"><i><b> total = startNum*myNum;</b></i></span></p><p><span style="font-family: courier;"><i><b> System.out.println("----------------------");</b></i></span></p><p><span style="font-family: courier;"><i><b> System.out.println("(" + i + ") " + myNum + " * " + startNum + " = " + total);</b></i></span></p><p><span style="font-family: courier;"><i><b> startNum++;</b></i></span></p><p><span style="font-family: courier;"><i><b> <span style="white-space: pre;"> </span> }</b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"> </span>}</b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"><br /></span></b></i></span></p><p><span style="font-family: courier;"><i><b><span style="white-space: pre;"> </span>}</b></i></span></p><div><h3><span style="font-family: times; font-size: large;">Two Dimensional Arrays :</span></h3></div><p><span style="font-family: courier;"></span></p><div><span><p>Definition Example :</p><p>int Iarr[][] = {{1,2},{3,4}};</p><p>Example1 :</p></span></div><p><span style="font-family: courier;"><b><i>//Two Dimensional Arrays</i></b></span></p><p><span style="font-family: courier;"><b><i>/*</i></b></span></p><p><span style="font-family: courier;"><b><i>*Our output : Two rows, Two Columns</i></b></span></p><p><span style="font-family: courier;"><b><i>* 1 2</i></b></span></p><p><span style="font-family: courier;"><b><i>* 3 4</i></b></span></p><p><span style="font-family: courier;"><b><i>*/</i></b></span></p><p><span style="font-family: courier;"><b><i>public class TwoDimArr{</i></b></span></p><p><span style="font-family: courier;"><b><i>public static int Iarr[][] = {{1,2},{3,4}};</i></b></span></p><p><span style="font-family: courier;"><b><i>public static void main(String[] args){PrintArr();}</i></b></span></p><p><span style="font-family: courier;"><b><i>public static void PrintArr(){</i></b></span></p><p><span style="font-family: courier;"><b><i> for(int Ri=0; Ri<2; Ri++){</i></b></span></p><p><span style="font-family: courier;"><b><i> for(int Cj=0; Cj<2; Cj++){</i></b></span></p><p><span style="font-family: courier;"><b><i> System.out.print("R#" + (Ri+1) + "C#" + (Cj+1) + " [" + Iarr[Ri][Cj] + "] ");</i></b></span></p><p><span style="font-family: courier;"><b><i> }</i></b></span></p><p><span style="font-family: courier;"><b><i><span style="white-space: pre;"> </span> System.out.println();</i></b></span></p><p><span style="font-family: courier;"><b><i> }</i></b></span></p><p><span style="font-family: courier;"><b><i>}</i></b></span></p><p><b><i><span style="font-family: courier;"></span></i></b></p><p><span style="font-family: courier;"><b><i>}</i></b></span></p></span></div><div><div style="text-align: justify;"><div style="text-align: left;"><div style="text-align: justify;"><span style="text-align: left;"><div style="text-align: justify;"><div style="font-family: courier; font-style: italic;"></div></div></span></div></div><div style="text-align: left;"><ol></ol></div></div></div>Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-31489234842564082142013-06-27T15:36:00.000-07:002016-04-28T09:34:38.824-07:00facebook developers comments : How to insert a photo (any photo) from internet into a comment<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-8467996035546474",
enable_page_level_ads: true
});
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<b>Facebook developers comments</b></h2>
<div style="text-align: justify;">
<blockquote class="tr_bq">
In this video you will see how to insert a photo from the internet into Facebook comment box as if it came from your local drive. You can comment using images from your local machine, but after seeing this video you will learn how to comment to posts using any photo you want without downloading it from the Internet, just simply get the path to it..</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/tDxoyQdyKwc?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<h2 style="text-align: justify;">
<b>More Facebook developers blogs :</b></h2>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/06/facebook-developers-comments-how-to.html" target="_blank">(1) Fb developers comments : How to insert a photo from the internet into a Facebook comment </a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/12/facebook-is-not-loading-correctly.html" target="_blank">(2) Facebook is not loading correctly when opened.</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/11/bug-how-to-make-link-appears-with-image.html" target="_blank">(3) Facebook development : How to display a thumbnail for your link</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/02/invite-all-your-friends-to-your-group.html" target="_blank">(4) Facebook tricks - Invite all your friends together to visit your page or your group</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html" target="_blank">(5) Facebook developers : Create a Facebook application using Dreamweaver.</a> </b></div>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-49929713474735316182013-02-02T19:36:00.000-08:002016-04-28T09:34:48.772-07:00Facebook tricks - Invite all your friends to your group, page and event<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-8467996035546474",
enable_page_level_ads: true
});
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
How to invite all of your friends to your :<br />
<ul style="text-align: left;">
<li>Page</li>
<li>Group</li>
<li>Event</li>
</ul>
With just one click you can achieve this. Those who have many friends (+3000) and own groups, pages or events that promote a service, a cause or even a business will make a good use of this trick.<br />
<br />
<blockquote class="tr_bq">
Note : This trick doesn't work with Firefox browser. </blockquote>
<br />
Just follow my leads as shown in this video below .<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/czcPuC3yBcQ?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
Here is the code I was talking about in the video .<br />
<br />
<pre><script src="https://gist.github.com/facebookegypt/5639089.js"></script></pre>
<br />
<h2 style="text-align: justify;">
<b>More Facebook developers blogs :</b></h2>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/06/facebook-developers-comments-how-to.html" target="_blank">(1) Fb developers comments : How to insert a photo from the internet into a Facebook comment </a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/12/facebook-is-not-loading-correctly.html" target="_blank">(2) Facebook is not loading correctly when opened.</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/11/bug-how-to-make-link-appears-with-image.html" target="_blank">(3) Facebook development : How to display a thumbnail for your link</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/02/invite-all-your-friends-to-your-group.html" target="_blank">(4) Facebook tricks - Invite all your friends together to visit your page or your group</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html" target="_blank">(5) Facebook developers : Create a Facebook application using Dreamweaver.</a> </b></div>
<br /></div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-81718229612056121442012-12-07T10:35:00.000-08:002013-06-27T16:57:38.008-07:00Facebook tricks Facebook is not loading correctly !<div dir="ltr" style="text-align: left;" trbidi="on">
<b><u><span style="font-size: large;">Problem : </span></u></b><br />
Facebook.com is not <b>Login </b>successfully.<br />
<br />
<b><u><span style="font-size: large;">Description :</span></u></b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1UIwUxTSHCjBqGD1gqbRjgLBz19qriBg6IYHR3aAi4pu5Wc34Z4_dzRadSX8DgUIXijACCdlUkrKYZIbZkIVEnrccHguzafyYWbpf1YfJE6S089LgN2-d9jjD922_igyigdX5KyahULg/s1600/facebook.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1UIwUxTSHCjBqGD1gqbRjgLBz19qriBg6IYHR3aAi4pu5Wc34Z4_dzRadSX8DgUIXijACCdlUkrKYZIbZkIVEnrccHguzafyYWbpf1YfJE6S089LgN2-d9jjD922_igyigdX5KyahULg/s320/facebook.jpg" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: justify;">
you tried to open Facebook.com and it did not load completely "e.g. : the colors and the photos and the login is not working at all, as if you have very slow internet connection or internet connect has been lost, but it is not actually".</div>
<b><u><span style="font-size: large;">Solution :</span></u></b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKCX1zkfmhkf1lMslXlQXN8GwqpPOlmMVPd_jR_BdX8TUcBQLpd6hh-wp8DMAfTTOOnzR4tIMxdeFa4OKY6Rg-Nt-9MScsS8USeNqss8JSAeHklv5aSnUhiUMlv_tJjQUblc-BMYP-bwU/s1600/dateand+time.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKCX1zkfmhkf1lMslXlQXN8GwqpPOlmMVPd_jR_BdX8TUcBQLpd6hh-wp8DMAfTTOOnzR4tIMxdeFa4OKY6Rg-Nt-9MScsS8USeNqss8JSAeHklv5aSnUhiUMlv_tJjQUblc-BMYP-bwU/s1600/dateand+time.PNG" /></a></div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjd-wK3JwnGhJxUp5gHsl3vTvI2C1DByqHRMhdTqMjV5OSBMQ4p-9pjRRfjhTOzvLBpry3-LxzHMRgcocF-j35q2Qqh_frrXa2LEYlQRdojHP_jp127iDFEuSnKOev-_qWJGPx5N0QtOs/s1600/date+and+time.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="275" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjd-wK3JwnGhJxUp5gHsl3vTvI2C1DByqHRMhdTqMjV5OSBMQ4p-9pjRRfjhTOzvLBpry3-LxzHMRgcocF-j35q2Qqh_frrXa2LEYlQRdojHP_jp127iDFEuSnKOev-_qWJGPx5N0QtOs/s320/date+and+time.PNG" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: justify;">
Check if the OS (Windows System) date and time "From the black screen at the startUp" is correctly set and suits the region that you are opening Facebook.com from, and check the main date and time of the computer too.<br />
<br />
<h2 style="text-align: justify;">
<b>More Facebook developers blogs :</b></h2>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/06/facebook-developers-comments-how-to.html" target="_blank">(1) Fb developers comments : How to insert a photo from the internet into a Facebook comment </a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/12/facebook-is-not-loading-correctly.html" target="_blank">(2) Facebook is not loading correctly when opened.</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/11/bug-how-to-make-link-appears-with-image.html" target="_blank">(3) Facebook development : How to display a thumbnail for your link</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/02/invite-all-your-friends-to-your-group.html" target="_blank">(4) Facebook tricks - Invite all your friends together to visit your page or your group</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html" target="_blank">(5) Facebook developers : Create a Facebook application using Dreamweaver.</a> </b></div>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-15266543668182696592012-11-12T14:01:00.000-08:002013-06-27T16:56:14.010-07:00Facebook developers - Bug : How to make link appears with image in Facebook post<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
When you post a link to Facebook.com timeline of yours or someone Else's or even a page or a group, you notice that your link shows up with a photo and sometimes it just doesn't.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Promoting your website or your product's link over Facebook through pages or groups require displaying some photos of what you are promoting even if you are not targeting a group of potential customers.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq7YepguEv6t4fcGtJxUXrlyM2AWIs5eaxdc5pXD2pl161yttHchnNBV1i8AwPop_aUzF-9TjXzVonWFFNeEDUFGmM14dVnSg0od72iBU-pZ9Si-6ssllxi4NHiVedk5o-YR6O8L9FfnA/s1600/facebook+evry1falls.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq7YepguEv6t4fcGtJxUXrlyM2AWIs5eaxdc5pXD2pl161yttHchnNBV1i8AwPop_aUzF-9TjXzVonWFFNeEDUFGmM14dVnSg0od72iBU-pZ9Si-6ssllxi4NHiVedk5o-YR6O8L9FfnA/s640/facebook+evry1falls.PNG" width="640" /></a></div>
<br />
<div style="text-align: justify;">
In my blog (http://www.evry1falls.blogspot.com/) I share news, and some posts do or don't have photos, but what really attracts audience to visit your story out of Facebook.com is the (ADS) advertisements links image, cause it adds credibility to your story, in case of blogger.com, the image is already there even if your post doesn't include one, the blog head-photo is always an option to choose.</div>
<br />
I have another sub-domain (http://ahmedsamir.awardspace.com) or (http://evry1falls.co.cc) that doesn't have a header photo and some posts doesn't have a picture, so when i post, it looks like this :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6hzYSf_9_kyDUs9Hai7OolPY5ZvQ006t7zgkDFlpOt1rjLJ7xJvohfxQru2GMsr_E8H5TPIOhYUyitrBTE1Dlck7pl32A8WP5ylA4xCEBpZxZio08wccPSXznYvEKeSjl1M0MX-Em49c/s1600/ahmedsamir.awardspace.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="202" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6hzYSf_9_kyDUs9Hai7OolPY5ZvQ006t7zgkDFlpOt1rjLJ7xJvohfxQru2GMsr_E8H5TPIOhYUyitrBTE1Dlck7pl32A8WP5ylA4xCEBpZxZio08wccPSXznYvEKeSjl1M0MX-Em49c/s640/ahmedsamir.awardspace.PNG" width="640" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Which is bad for business, so I've looked around and found this :</div>
<div style="text-align: justify;">
- It's a bug...... How ?</div>
<div style="text-align: justify;">
If you use Facebook.com link debugger you will know the reason why your image is not showing [<a href="https://developers.facebook.com/tools/debug" rel="nofollow" target="_blank">Facebook Link Debugger</a>], just paste your site Url and click on debug.</div>
<div style="text-align: justify;">
Examples of what you may get :</div>
<br />
<br />
<div style="text-align: justify;">
<br /></div>
<ol style="text-align: justify;">
<li style="text-align: justify;"><b><u>Inferred Property</u></b>:<span class="Apple-tab-span" style="white-space: pre;"> </span>The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.</li>
<li style="text-align: justify;"><b><u>Inferred Property</u></b>:<span class="Apple-tab-span" style="white-space: pre;"> </span>The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.</li>
<li style="text-align: justify;"><b><u>Inferred Property</u></b>:<span class="Apple-tab-span" style="white-space: pre;"> </span>The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.</li>
<li style="text-align: justify;"><b><u>Inferred Property</u></b>:<span class="Apple-tab-span" style="white-space: pre;"> </span>The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.</li>
<li style="text-align: justify;"><b><u>Unable to download</u></b> og:image:<span class="Apple-tab-span" style="white-space: pre;"> </span>The image referenced by the url of og:image tag could not be downloaded.</li>
</ol>
<br />
<div style="text-align: justify;">
from (1) to (4) is normal issues and could be easily resolved :</div>
<div style="text-align: justify;">
Just replace your <i style="text-decoration: underline;">meta tags</i> [Title, Url, Description, Image] with codes like this :</div>
<div style="text-align: justify;">
<div>
<br /></div>
<div>
<meta property = "og:title" content="Your_Site_Title" /> </div>
<div>
<meta property ="og:description" content="Your_Site_Description" /> </div>
<div>
<meta property = "og:url" content="Your_Site_Url" /></div>
<div>
<meta property = "og:image" content="Path_to_Image_you_wish_to_see" /> '<b><u>Note</u></b>:must be at least 200px in both dimensions.</div>
</div>
<div>
<br /></div>
<div style="text-align: justify;">
The (5) is the bug, whatever you do trying to fix this issue, you always get unlucky, until I've found that I'm not alone in this problem, and finally [<b><u><i><span style="font-size: x-large;">It's a Bug</span></i></u></b>]</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
I'll will keep looking arounf until i find a work around or a solution or facebook team solves it.</div>
<br />
<span style="color: #666666;"><b><u><span style="font-size: x-large;">S</span></u></b><span style="font-size: large;">olution </span><b><u><span style="font-size: x-large;">W</span></u></b><span style="font-size: large;">orked for me :</span></span><br />
<span style="color: #666666;"><b><u>I uploaded the photo :</u></b></span><br />
<span style="color: #666666;"><b><u>F</u>ormat : (PNG) or (JPEG) </b></span><br />
<span style="color: #666666;"><b><u>D</u>imensions : 300x300 px (<u><span style="font-size: x-small;">More than 250px</span></u>)</b></span><br />
<span style="color: #666666;"><b><u>C</u>ode : <Meta Property="og:image" id="myID" content="http://i50.tinypic.com/17r9jb.png</b><b>" /></b></span><br />
<span style="color: #666666;"><b>and it worked perfectly .</b></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt7WqYg2mlcrLhTBneFOnuv7ZBHKk3SmLbv_xWyYlc5RIvlTvD11wooUYAfD1cwpIw9D5ZbVFbTdjgE8qmrAE47kdlWhcLis2IlIJzMIVSCOioz3yjAkB-pCh63pyVrWAc0TOz1foDNh0/s1600/facebook_evry1falls.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt7WqYg2mlcrLhTBneFOnuv7ZBHKk3SmLbv_xWyYlc5RIvlTvD11wooUYAfD1cwpIw9D5ZbVFbTdjgE8qmrAE47kdlWhcLis2IlIJzMIVSCOioz3yjAkB-pCh63pyVrWAc0TOz1foDNh0/s640/facebook_evry1falls.PNG" width="640" /></a></div>
<div style="text-align: center;">
<br />
<h2 style="text-align: justify;">
<b>More Facebook developers blogs :</b></h2>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/06/facebook-developers-comments-how-to.html" target="_blank">(1) Fb developers comments : How to insert a photo from the internet into a Facebook comment </a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/12/facebook-is-not-loading-correctly.html" target="_blank">(2) Facebook is not loading correctly when opened.</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/11/bug-how-to-make-link-appears-with-image.html" target="_blank">(3) Facebook development : How to display a thumbnail for your link</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/02/invite-all-your-friends-to-your-group.html" target="_blank">(4) Facebook tricks - Invite all your friends together to visit your page or your group</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html" target="_blank">(5) Facebook developers : Create a Facebook application using Dreamweaver.</a> </b></div>
<h3 style="text-align: justify;">
</h3>
</div>
<ul style="text-align: left;">
</ul>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-35084463689459716962011-10-31T10:24:00.000-07:002013-06-27T16:54:00.206-07:00Facebook developers Map - Facebook api php from DreamWeaver<div dir="ltr" style="text-align: left;" trbidi="on">
<b>If Your are using Dreamweaver then it should look something like that :</b><br />
(p.s : im working on other files, so just don't consider it when you develop your Dreamweaver PHP site)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRrJfMw1qW7yOiSSHmhrioeWofauEx4SU60UDzd8Y6YjoYvBW821m5FkahyScCzgfY8gdhJ_KGdwkhAAQocTzh5vOBCjHpWbz7_5fTvoRo7MQWqm7V2p698ZTQqVgNHjKh5FbnNXMj128/s1600/dreamweaver+-+evry1falls.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" ida="true" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRrJfMw1qW7yOiSSHmhrioeWofauEx4SU60UDzd8Y6YjoYvBW821m5FkahyScCzgfY8gdhJ_KGdwkhAAQocTzh5vOBCjHpWbz7_5fTvoRo7MQWqm7V2p698ZTQqVgNHjKh5FbnNXMj128/s640/dreamweaver+-+evry1falls.GIF" width="260" /></a></div>
<br />
<br />
<h2 style="text-align: left;">
<b>More Facebook developers blogs :</b></h2>
<b><a href="http://facebookegyapi.blogspot.com/2013/06/facebook-developers-comments-how-to.html" target="_blank">(1) Fb developers comments : How to insert a photo from the internet into a Facebook comment </a></b><br />
<b><a href="http://facebookegyapi.blogspot.com/2012/12/facebook-is-not-loading-correctly.html" target="_blank">(2) Facebook is not loading correctly when opened.</a></b><br />
<b><a href="http://facebookegyapi.blogspot.com/2012/11/bug-how-to-make-link-appears-with-image.html" target="_blank">(3) Facebook development : How to display a thumbnail for your link</a></b><br />
<b><a href="http://facebookegyapi.blogspot.com/2013/02/invite-all-your-friends-to-your-group.html" target="_blank">(4) Facebook tricks - Invite all your friends together to visit your page or your group</a></b><br />
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html" target="_blank">(5) Facebook developers : Create a Facebook application using Dreamweaver.</a> </b></div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-5836681300594198152011-10-31T10:01:00.000-07:002013-06-27T16:46:12.532-07:00Facebook application development Facebook Api PhP - New.php<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #444444;"><b>Let your Api users invite their friends to your Api. ... using Face book graph</b></span></h2>
<h3 style="text-align: left;">
<b><span style="font-weight: normal;">New.php Code</span></b></h3>
<script src="https://gist.github.com/facebookegypt/5881368.js"></script>
<div style="text-align: center;">
<a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendspicsphp.html"><b>Try.php</b></a> <b>Previous | <a href="http://apps.facebook.com/ahmedsamir">Final Shape Of Your Api</a></b></div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-49062436989319821242011-10-31T09:56:00.000-07:002013-06-27T16:43:55.930-07:00Facebook developers Facebook Api PhP - try.php<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #666666;"><b>Display The Name and the Photo of the current User of your Api ...</b></span></h2>
<h3 style="text-align: left;">
<b>try.php Code</b></h3>
<script src="https://gist.github.com/facebookegypt/5881357.js"></script>
<div style="text-align: center;">
<h3>
<span style="color: #666666;"><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendspicsphp.html"><b>FriendsPics</b></a> <b>Previous | Next <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-newphp.html">New.php</a></b></span></h3>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-70418649636180761892011-10-31T09:48:00.000-07:002013-06-27T16:42:27.842-07:00Facebook application developer Facebook Api PhP - friendspics.php<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Let your Api users to display the pics of their friends .</h2>
<h3 style="text-align: left;">
FriendsPics.Php</h3>
<script src="https://gist.github.com/facebookegypt/5881345.js"></script>
<div style="text-align: center;">
<h3>
<span style="color: #666666;"><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendlistphp.html"><b>friendlist</b></a><b> Previous | Next <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html">try.php</a></b></span></h3>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-27648765088819390782011-10-31T09:40:00.000-07:002013-06-27T16:40:43.828-07:00Facebook application developer Facebook Api PhP - friendlist.php<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #666666;"><b>Let your api users to display their friends list ..</b></span></h2>
<br />
<h2 style="text-align: left;">
<u><b>friendlist.php Code</b></u></h2>
<script src="https://gist.github.com/facebookegypt/5881337.js"></script>
<div style="text-align: center;">
<h3>
<span style="color: #666666;"><b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-feedphp.html">feed.php</a> Previous | Next <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendspicsphp.html">friendspics.php</a> </b></span></h3>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-90724852398487222602011-10-31T09:36:00.000-07:002013-06-27T16:39:06.167-07:00Facebook Api PhP - Feed.php<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
<span style="color: #666666;"><b>Let your API Users Post Messages to their wall ..</b></span></h2>
<h3 style="text-align: left;">
<b>Feed.Php</b></h3>
<script src="https://gist.github.com/facebookegypt/5881329.js"></script>
<div style="text-align: center;">
<h3>
<b><a href="http://facebookegyapi.blogspot.com/2011/10/fbnamepho.html">Fbname.php</a> Previous | Next <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendlistphp.html">FriendList</a>.php </b></h3>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-19205342491505005352011-10-31T09:26:00.000-07:002013-06-27T16:37:15.364-07:00Facebook app development Facebook Api PhP - Fbname.php<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span style="font-size: small;"><b>The User Of Your App Friend's Names ... when a user logs into your app he could show all of his friends and know how many are they and thier (first name | last name) ....</b></span></div>
<br />
<h3 style="text-align: left;">
<b>Fbname.php Code</b></h3>
<script src="https://gist.github.com/facebookegypt/5881324.js"></script>
<div style="text-align: center;">
<h3>
<a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-configphp.html"><b>Config.php</b></a><b> Previous || Next <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-feedphp.html">Feed.php</a></b></h3>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-11219060970479221862011-10-12T09:09:00.000-07:002013-06-27T16:35:19.577-07:00Facebook application developers Facebook Api PhP - Config.php<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Config.php Code :</b><br />
<script src="https://gist.github.com/facebookegypt/5881313.js"></script>
<div style="text-align: center;">
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-indexphp.html">Index.php</a> <=Previous || Next => <a href="http://facebookegyapi.blogspot.com/2011/10/fbnamepho.html">Fbname.php</a></b></div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-11400728806172829092011-10-12T08:58:00.000-07:002013-06-27T16:32:47.482-07:00Facebook developers application Facebook Api PhP - Index.php<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<b>Index.Php Code :</b></h2>
<script src="https://gist.github.com/facebookegypt/5881299.js"></script>
<div style="text-align: center;">
<h4>
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-mainphp.html">Main.php</a> <=Previous || Next => <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-configphp.html">Config.php</a></b></h4>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-71953333416321502792011-10-10T18:25:00.000-07:002013-06-27T16:27:24.722-07:00Facebook developers application Facebook Api Php - main.php<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
First,<br />
Here is the Final Shape of your App <a href="http://apps.facebook.com/ahmedsamir">Evry1falls</a><br />
<br />
<table align="center" bgcolor="red" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGn_ypQBOrSkchVxJvyoCkRrxrOKh1ok24MMVsigQLD5120htMfmiDC_1ssb_nDDA5ZxgOPwEV9obDYJmqIN3Do3kbDARscO9rrVvX2n_M6OgGNoKvBVfKD1ddcyE8-Iz0MAhRDE_Pz_M/s1600/Final+Looks.GIF" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="221" kca="true" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGn_ypQBOrSkchVxJvyoCkRrxrOKh1ok24MMVsigQLD5120htMfmiDC_1ssb_nDDA5ZxgOPwEV9obDYJmqIN3Do3kbDARscO9rrVvX2n_M6OgGNoKvBVfKD1ddcyE8-Iz0MAhRDE_Pz_M/s320/Final+Looks.GIF" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><b>Final Look Of The Application Using (PHP)</b></td></tr>
</tbody></table>
Now,<br />
<b><u><span style="color: #3d85c6;">1) main.php - Code</span></u></b><br />
<script src="https://gist.github.com/facebookegypt/5881277.js"></script>
</div>
<b>- As you can see the main.php file holds the Variables from where other files will work through such as (Index.php) .... any question just post a comment !</b><br />
<br />
<div style="text-align: center;">
<b>Next - <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-indexphp.html">Index.php</a></b></div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-1126591403302549762011-10-02T20:24:00.000-07:002013-06-27T16:22:41.226-07:00Facebook application development Fatal error: Uncaught OAuthException: An active access token must be used<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #666666;">This Topic aplies to SDK 3.x</span><br />
<span style="color: #666666;"><b><u>S</u></b>ubject ( <b><i>Fatal error: Uncaught OAuthException: An active access token must be used</i></b> )</span><br />
<span style="color: #666666;">The Answer to this problem could be found here : <a href="http://stackoverflow.com/questions/7354978/php-sdk-how-do-i-capture-the-access-token-after-user-auths-app">Link</a></span><br />
<span style="color: #666666;">But let's discuss it, shall we!</span><br />
<span style="color: #666666;"><b><span style="font-size: large;">- <u>There are 4 reasons why Tokens get expire :</u></span></b></span><br />
<ol style="text-align: left;">
<li><span style="color: #666666;"><b><i><span style="font-family: Georgia, "Times New Roman", serif;">The token expires after expiration time (2 hours is the default).</span></i></b></span></li>
<li><span style="color: #666666;"><b><i><span style="font-family: Georgia, "Times New Roman", serif;">The user changes his/her password which invalidates the access token.</span></i></b></span></li>
<li><span style="color: #666666;"><b><i><span style="font-family: Georgia, "Times New Roman", serif;">The user DE-authorizes your app.</span></i></b></span></li>
<li><span style="color: #666666;"><b><i><span style="font-family: Georgia, "Times New Roman", serif;">The user logs out of Facebook.</span></i></b></span></li>
</ol>
<span style="color: #666666;"><b><span style="font-size: large;">I will not explain the 4 reasons but i will just post the script solution :</span></b></span><br />
<script src="https://gist.github.com/facebookegypt/5881250.js"></script>
<span style="color: #666666;">- If there is any question, just post a comment.</span><br />
<span style="color: #666666;">- i will get back here to try to explain the codes .</span><br />
<span style="color: #666666;"><br /></span>
<span style="color: #666666;">google me (evry1falls)</span></div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comMarkaz El-mahmoudeya, Al - Behaira, Egypt31.185196772675155 30.520705801757831.097916772675156 30.4268773017578 31.272476772675155 30.6145343017578tag:blogger.com,1999:blog-8790633530879309233.post-81567610654719724232011-09-30T13:37:00.000-07:002013-06-27T16:11:57.183-07:00Facebook application development Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif;"><span style="font-size: x-large;"><b><u>PHP SDK 3.1</u></b></span></span></span><br />
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif;"><span style="font-size: x-large;"><b> </b><b> </b></span></span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">it means : your web hosting is not able to connect to Facebook <b><u>quickly</u></b>.</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">Solution is Simple.</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">you have 2 choices :</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">1) change your hosting plan or change your web hosting</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">-OR-</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">2) go to base_Facebook.php file</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">line # 128 : with those lines</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;"> public static $CURL_OPTS = array(<br />
CURLOPT_CONNECTTIMEOUT => 10,<br />
CURLOPT_RETURNTRANSFER => true,<br />
CURLOPT_TIMEOUT => 60,<br />
CURLOPT_USERAGENT => 'facebook-php-3.1',<br />
);</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">Change the (CURLOPT_CONNECTTIMEOUT => <u><b>10</b></u>,) into (CURLOPT_CONNECTTIMEOUT => <b><u>30</u></b>,) .... save the base_facebook.php .</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">That is it ....</span></span></div>
<div style="text-align: center;">
<span style="color: #666666;"><span style="font-family: Times, "Times New Roman", serif; font-size: large;">Google me (evry1falls)</span></span></div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-77611991205870512612011-09-28T08:28:00.000-07:002013-06-27T16:09:17.952-07:00Facebook application developers SDK 3.X Intro<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #666666;"><b><u><span style="font-family: Georgia, "Times New Roman", serif; font-size: x-large;">Scratch</span></u></b></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-size: large;"><b>What is </b><a href="http://en.wikipedia.org/wiki/Software_development_kit"><b>SDK</b></a> ?</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-size: large;">SDK is -> <b>S</b>oftware <b>D</b>evelopment <b>K</b>it.</span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-size: large;"><b>What is FaceBook SDK ?</b></span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-size: large;">FaceBook SDK is -> The Language that enables you to make software in <b><a href="http://facebook.com/">facebook.com</a></b></span></span></div>
<div style="text-align: justify;">
<span style="color: #666666;"><span style="font-size: large;"><b>Where to download the latest Facebook SDK ?</b><br />
From Here : </span><a href="https://nodeload.github.com/facebook/php-sdk/zipball/master"><span style="font-size: large;">Link</span></a><span style="font-size: large;"> (you need to signup to " </span><a href="https://github.com/"><span style="font-size: large;">https://github.com/</span></a><span style="font-size: large;"> " then download) this is <b>PHP SDK 3.1.1</b></span></span><br />
<span style="color: #666666;"><span style="font-size: large;"><b>How to start ?</b>You can start learning the <b>SDK</b> without any base previous studying for any other language, But you need to be fmiliar with other Languages such as (PHP, Java Scripts).<br />
So, if you're just starting Programming, i suggest that you gain some skills in (PHP) i recommend </span><a href="http://www.tizag.com/phpT/"><b><span style="font-size: large;">this site</span></b></a><span style="font-size: large;"> first, it will give you a good lessons about <b>PHP . </b>Also you will need a web hosting with <b>PHP5/MYSQL</b> "as we will build these lessons on <b>PHP" </b>that enables <b>Curl, </b>i recommend <b><a href="http://www.freewebhostingarea.com/">this site</a> .</b><br />
<b>- if you already know these things, then thanx for reading anyway</b><br />
<b>- if you don't know, then i suggest you start getting closer coz i started from not knowing anything and im already in six months writing lessons and making my facebook applications ( facebook api).</b></span></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">- Table Of Contents :</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">1) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-mainphp.html">Main.php</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">2) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-indexphp.html">Index.php</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">3) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-configphp.html">Config.php</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">2) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendlistphp.html">List Of All the user friends' ID</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">3) <a href="http://facebookegyapi.blogspot.com/2011/10/fbnamepho.html">List Of All the user friends' Names</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">4) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-friendspicsphp.html">List Of All the user friends' Photos</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">5) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-feedphp.html">Post To Wall</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">6) <a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-newphp.html">Invite Friends</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">We will post the 6 scripts separately and explain some of the codes ..... Enjoy the ride .</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">let me remind you that you have to :</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">- worked with Php b4</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">- have a hosting plane (web host)</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">- know some facebook api knowledge .</span></b></span><br />
<span style="color: #666666;"><br /></span>
<span style="color: #666666;"><b><span style="font-size: large;">It's done now ... and not so much ...</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;"><a href="http://apps.facebook.com/ahmedsamir">View On Facebook</a></span></b></span><br />
<span style="color: #666666;"><br /></span>
<span style="color: #666666;"><b><span style="font-size: large;">Don't forget to google me (evry1falls) to get help anytime you like :</span></b></span><br />
<br />
<span style="color: #666666;"><b><span style="font-size: large;">Other Topics :</span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">1) <a href="http://vb6access2003.blogspot.com/">Visual Basic 0.6</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">2) <a href="http://adonetaccess2003.blogspot.com/">Visual Basic 2005</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">3) <a href="http://visualc2005.blogspot.com/">Visual C# 2005</a></span></b></span><br />
<span style="color: #666666;"><b><span style="font-size: large;">4) <a href="http://evry1falls.blogspot.com/">Most Interesting News</a></span></b></span></div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.comtag:blogger.com,1999:blog-8790633530879309233.post-25358235943562221892011-09-28T07:47:00.000-07:002013-06-27T17:10:29.222-07:00Facebook application developer<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="rtl" style="text-align: center;">
<h2>
<span style="color: #666666;"><b><u><span style="font-size: x-large;">بسم الله الرحمن الرحيم</span></u></b></span></h2>
<h2 dir="ltr">
<span style="color: #666666;"><b><u><span style="font-size: x-large;">In the name of ALLAH </span></u></b></span></h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCcIIZVedbryF4Fvxqt4oJ4go4CfxvrHRJPYI0u1JFDRzlEjx8ZHM7cgSFof-O3x0MWftaeKoCdA6IaPPi2lkm8OE9N0BaqeiifuEsqIPF2-qbbSm5eKFhYMR61PZ8oWI0-9G29dKOUOo/s800/facebook+developers+blog.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCcIIZVedbryF4Fvxqt4oJ4go4CfxvrHRJPYI0u1JFDRzlEjx8ZHM7cgSFof-O3x0MWftaeKoCdA6IaPPi2lkm8OE9N0BaqeiifuEsqIPF2-qbbSm5eKFhYMR61PZ8oWI0-9G29dKOUOo/s640/facebook+developers+blog.png" width="640" /></a></div>
<h2 dir="ltr">
<br /></h2>
</div>
<div style="text-align: justify;">
<h3>
Keywords for my Web-blog :</h3>
<h3>
Facebook developers, Facebook tricks, Facebook application development, Facebook developers application, Facebook application developers, Facebook application developer, Facebook app development, Facebook developer app, Facebook app developers, Facebook app developer, apps development, mobile app development, app development, app developers, app developer, app development software, </h3>
<h3>
</h3>
<h2 style="text-align: justify;">
<b>More Facebook developers blogs :</b></h2>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/06/facebook-developers-comments-how-to.html" target="_blank">(1) Fb developers comments : How to insert a photo from the internet into a Facebook comment </a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/12/facebook-is-not-loading-correctly.html" target="_blank">(2) Facebook is not loading correctly when opened.</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2012/11/bug-how-to-make-link-appears-with-image.html" target="_blank">(3) Facebook development : How to display a thumbnail for your link</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2013/02/invite-all-your-friends-to-your-group.html" target="_blank">(4) Facebook tricks - Invite all your friends together to visit your page or your group</a></b></div>
<div style="text-align: justify;">
<b><a href="http://facebookegyapi.blogspot.com/2011/10/facebook-api-php-tryphp.html" target="_blank">(5) Facebook developers : Create a Facebook application using Dreamweaver.</a> </b></div>
<h3 style="text-align: justify;">
</h3>
</div>
</div>
Evry1fallshttp://www.blogger.com/profile/10429307668618618854noreply@blogger.com