.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Interview Question >> Others >> Post New Question Subscribe to Interview Questions

php dynamic og:image for facebook

Posted By :Jack Hard     Posted Date :November 07, 2012    Points :40   Category :Others 
Now this is all over stackoverflow but I haven't come across a solution that has worked yet so here goes...

Just trying to get facebook to recognise my og:image pretty simple. Everything outputs with the facebook object debugger except the thumbnail won't show. It does however show the correct url and when the blank thumbnail is clicked it loads the correct image.

Here that code for that:

<meta property="og:title" content="<? echo $product_name; ?>"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://www.domain.com.au/product-tesst.php?id=<? echo $id ?>"/>
<meta property="og:image"content="https://www.domain.com.au/inventory_images/thumb_<? echo $id ?>.jpg"/>
<meta property="og:site_name" content="Biz Name"/>
<meta property="fb:admins" content=""/>
<meta property="og:description" content="<? echo stripslashes($details) ?>"/>

You can also find related Interview Question to php dynamic og:image for facebook  below: 

Where is image data loaded into ImageList controls actually stored in the project?

Each form has an associated resource file (with a .resx extension) where image data and localized strings are stored.You can see this by clicking the Show All Files icon in the Solution Explorer. (More...)

I have an image and want to nine more exact images, How can I get copied images from this image?

In straight way you can't create a subimage from an existing image. Here you just clip an image, Clipping is just different from Cropping. In clipping, first you have to dictate which part of the images to draw and later you have to remove all but the desired part of the image. Silverlight does not support cropping. (More...)

What is the difference between "dynamic SQL" and "stored procedure" ?

Dynamic sql is the bunch of statements that dynamically constructed at run time and not stored in database.
Where as Stored procedures are stored in data base in complied form. (More...)

What are the Text and Image Functions?

PATINDEX,TEXTPTR,TEXTVALID are the Text and Image Functions (More...)

What is dynamic binding ? How is it different from static binding?

With dynamic binding, the decision on which object method to call is made at runtime.Dynamic binding is polymorphism. with static binding, the decision to on which method to call is made at compile time.c# uses static binding as the default method dispatching mechanism. (More...)

What is the maximum size of data we can store in the image type of SQL?

We can store binary data from 0 to 2^31-1 (2,147,483,647) bytes in an image field of SQL Server. (More...)

What is the difference between var and dynamic types in C# 4.0?

var gets processed in the compile time itself and shows any error during compile time itself.

dynamic gets processed in the runtime only and in case of errors it is hidden until runtime.

dynamic was introduced as part of the DLR (Dynamic Language Runtime) in .Net.

dynamic d = new MyClass();

Eventhough the method "InexistingMethod" is not there - it will get compiled and thrown exception in runtime.


What is dynamic variable in java and where do we use them?

The variables that are initialized at run time is called as dynamic variable (More...)

What is Native Image Generator (Ngen.exe)?

The Native Image Generator utility (Ngen.exe) allows you to run the JIT compiler on your assembly's
MSIL and generate native machine code which is cached to disk. After the image is created .NET
runtime will use the image to run the code rather than from the hard disk. Running Ngen.exe on
an assembly potentially allows the assembly to load and execute faster, because it restores code
and data structures from the native image cache rather than generating them dynamically. (More...)

Statics and Dynamic Polymporphism

Method Overloading or Static Polymorphism

Method overloading means having two or more methods with the same name but with different signatures

Method Overriding or Dynamic Polymorphism

Method overriding means having two or more methods with the same name , same signature but with different implementation. (Base class and Child class implementation of a method with same name and signature) (More...)

What is static linking and dynamic linking library

Dynamic linking includes only the information needed at runtime to locate the code for a DLL function but in static linking , the linker gets all of the referenced function from a static library and places into your code. (More...)

What are dynamic objects?

Dynamic objects are changed during time of test execution. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend