Showing posts with label open. Show all posts
Showing posts with label open. Show all posts

Tuesday, March 1, 2016

Complete Tutorial on Facebook Open Graph


Facebook Open Graph for Web Developer


Facebook Open Graph allows you to use custom site title, URL, description and even a custom image when you share your page. If you use Facebook Open Graph code on your site, every time when you share any page, it will be counted directly for your home page. Suppose, if I share the following URL on Facebook - 

http://www.markspcsolution.com/2014/09/complete-tutorial-on-facebook-open-graph.html

The sharing/ like will be counted for - 


http://www.markspcsolution.com/


But If there is no open graph code on my site, the sharing of the first URL will be counted individually. And the sharing will not be counted for your home page. Now I guess, youve understood the importance of open graph. Its really helpful to increase facebook likes of your site rapidly. 


Couple of days ago, I discussed about how to claim a site on Facebook. Following the same method, you can place Facebook Open Graph code on your site. Open graph code is as follows:



<meta property="og:title" content="Site Title"> 
<meta property="og:description" content="Site Description"> 
<meta property="og:type" content="Content Type">
<meta property="og:url" content="http://www.example.com/"> 
<meta property="og:image" content="Custom Image Link"> 
<meta property="og:site_name" content="Your Site Name"> 
<meta property="fb:admins" content="Your Numeric FB ID">


You have to place the above code in the head (<head> </head>) section of your sites HTML. The code must be placed before closing head tag - </head>.


Facebook Insights Meta Code

Now follow the steps below:

  1. Go to Facebook Insights > Domain Insights > Add your Domain
  2. Type your home page URL > Copy the Numeric FB ID > Keep the window open
  3. Go to your sites code or HTML and find the closing header tag </head>
  4. Place the above code before closing header tag
  5. Now back to the Facebook Insight Page 
  6. Hit on the Get Insights button
  7. Now you should be able to see your domain under the Domain Insights section


There are 7 meta properties in the above code. You have to change in the content option.  Make sure youve used them properly. Im gonna clarify the points - 
  1. Site Title Example - Marks PC Solution.
  2. Site Description - Whats your site about. Example - Your Ultimate Choice for Computer, Internet, Blogging, SEO & PC Troubleshooting Tips!
  3. Content Type - Website/ Blog/ Article/ News etc.
  4. Site URL Example - www.markspcsolution.com
  5. Custom Image - Upload your desired image in a server. Then simply copy and paste the link here. You can use postimage.org to upload image.  
  6. Type your Site Title here. Example - Marks PC Solution.
  7. Numeric FB ID that youve got from the 2nd step in Facebook Insights Page. You can also find numeric by this method. 


Marks PC Solution Custom Image



Troubleshooting

If you face any problem after implementing the code on your site, you can take help of Debugger. Here you can paste your site URL and debug the errors. You can check whether all properties are functioning normally or if there is a problem. 

Remember, you can omit some properties. If you use Custom Image, then it will be same for any link of your site. So you can also use a shorter version of the code as below:

<meta content=Website property=og:type/> 

<meta content=http://www.example.com/ property=og:url/> 
<meta content=100002127563096 property=fb:admins/>

It will do the same job for you. You can also use multiple Admin IDs. Simply add more numeric IDs in the admin property.


If you need any support regarding Facebook Open Graph, please leave a comment . . . 


Stay with Marks PC Solution to get more interesting IT topics!





Read more »

Friday, January 8, 2016

Fixing Open Office Writer auto corrected date

Open Office Writer is the the word processor in the free, open-source OpenOffice.org Productivity Suite. OOo Writer shares some "features" with Microsoft Office Word, including, unfortunately, automatic "corrections" that are a bit tricky to disable. Open Office developers should really fix this! By default, all auto corrections should be off (disabled). Users who want  auto corrections could enable them selectively.

Currently, you can disable most automatic corrections according to How to Set Up Open Office Writer for Easy Use. However, even after you think you have turned off all automatic corrections, there are still a few active mines waiting for you to step on them. For example, today, while creating a table in Open Office Writer, I came upon a NASTY glich, bug, problem, and royal pain. To sort by dates across multiple years, I needed to enter dates as yyyy-mm-dd, such as "2009-09-23." Each time I tried this, OOo Writer automatically "corrected" it to "09/23/09," which I did NOT want.

If you have the same problem, do the following:
  1. Select the table column that contains your date fields.
  2. Right-click your date column to display its menu, and then click Number Format to display its window.
  3. In the Category frame, scroll to and select Text, and then click OK to close the Number Format window.
Note: I found the above solution in the Ubuntu forum. (See #8.)

I am a huge fan of Open Office, and I really want to break my M$ addiction, but sometimes I am almost ready to give up. 


    Read more »

    Friday, January 1, 2016

    Use 7 Zip to Open Rar file or Zip file




    Isnt it very strange to write about such an easy topic in this site? Maybe. But Im gonna share a personal experience with you. After that you answer whether this post is unnecessary or not. 

    Few days ago I joined as an Internee at Uttara Bank Ltd. My first assignment in the bank was to print a file that officials failed to open. The Branch Manager knew about my computer skills. He asked me to troubleshoot the problem. 

    The task was very easy. It was simply a file with .rar extention. A mail was sent from Head Office. There were two files. So it was compressed by WinRar. As officials were not familiar with this file type they were confused. Then I just visited to the Filehippo and download the 7-Zip. After installing this I opened the file and printed this. :) 


    By the way, all of you (except new users) might be familiar with zip or rar files. There are many free as well as premium applications to compress the files or unpack the zipped files. But today Im gonna discuss about 7-Zip. 


    Lets have a look at what 7-Zip is actually- 
    • 7-Zip is an open source file archiver with a high compression ratio.
    • It is mostly used to zip and unzip the files and folders.
    • Supported Packing and Unpacking Formats: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
    • Supported Unpacking Formats: ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR and Z.
    • Finally the installation size is really smart. Less than 3 MB! 


    Download Link


    First youve to download 7-Zip from the above link. The download size is approximately 1 MB. Then install this on your PC. Installation process is very simple. There is no confusing option. 

    Portable version is also available. You can download it from here. [Note: If you use portable version you cant get the app shortcuts when right click on files or folders]

    After installing it on your PC, 7-Zip icon may appear on your Desktop or Program list. And when you right click on any file or folder you will see the options of 7-Zip. 


    To Open/ Extract a .Rar File or Folder: 
    1. Make a right click on that file/folder. 
    2. Choose 7-Zip > Open Archive.
    3. Now you can see the files stored on that folder.
    4. Hit on Extract button to unzip those files. 

    To Compress/ Zip Files or Folders: 
    1. Make sure the necessary files or folders are kept in the same folder.
    2. Now select the files and Click right.
    3. Choose 7-Zip > Add to Archives.
    4. Choose the Archive Format > Compression Level and other options as your need.
    5. Hit OK.


    Instructions for Portable Version: 

    The portable version is same as installed version except one thing. You will not get the shortcuts in mouse right click. All you need to do is just open the application from your PC where youve stored it. The application should be named as: 7-ZipPortable.exe. 

    When you need to run this program, simply click twice on it. Immediately after clicking on it, 7-Zip will run. Now, if you wanna archive something first go to the proper Location > Select the Files or Folder > Hit on Add > Choose the Destination Folder, File Format > Compression Level etc > Hit OK. 

    And if you wanna extract something then simply select the files and hit on Extract. If you do not choose any specific location for the extracted file then they will be extracted to the current folder. 


    Also have a look at the image below. Important buttons for using 7-Zip are marked there! 


    How to zip and unzip using 7-Zip


    Stay with Marks PC Solution to get more interesting IT topics!




    Read more »