Eric Nagel

Eric Nagel

CTO, PHP Programmer, Affiliate Marketer & IT Consultant

QR Code Generator for Facebook Ads

I have been, or can be if you click on a link and make a purchase, compensated via a cash payment, gift, or something else of value for writing this post. Regardless, I only recommend products or services I use personally and believe will be good for my readers.

QR Code for EricNagel.comAfter reading an interesting post by Ring Revenue, I started thinking where QR Codes could be used to generate Pay-Per-Call leads. Facebook, of course, came to mind.

Facebook ads use images that are 110×80 in size. I found a few QR Code generators online, but none of them gave me the right size. So I turned to the Google Chart API and wrote up this quick script. Just enter a 10-digit phone number and press submit, and you’ll be given an image of a QR Code that you can save to your computer, then upload to Facebook to use in your ad.

(ex: 555-555-1212)

Your QR Code:

echo(‘' . $_POST['nPhone'] . '
echo(“Right-click to save image, then upload to Facebook”);
else {
echo(“Please enter phone number like 555-555-1212“);


I’m not sure how many people will recognize a QR Code and know what to do with it (especially Facebook users) but you can use this same idea to run ads on the Google Content Network or even traditional print publications.

You can use this script to generate QR Codes for local lead gen clients or Pay per call clients (via ShareASale or CJ).

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.